Skip to content

Commit

Permalink
proxy to local meshtasticd server by default
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Nov 27, 2024
1 parent c91a754 commit eabbf0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function main() {
const usage = commandLineUsage([
{
header: "MeshTXT Server",
content: "A server that hosts the MeshTXT Web UI and optionally runs a proxy to a Meshtastic devices HTTP API.",
content: "A server that hosts the MeshTXT Web UI and runs a proxy to a Meshtastic devices HTTP API.",
},
{
header: "Options",
Expand All @@ -50,7 +50,7 @@ function main() {

// get options and fallback to default values
const port = options["port"] ?? 8080;
const meshtasticApiUrl = options["meshtastic-api-url"] ?? "";
const meshtasticApiUrl = options["meshtastic-api-url"] ?? "https://localhost";

// if provided, ensure meshtastic api url is http or https
if(meshtasticApiUrl !== "" && !meshtasticApiUrl.startsWith("http://") && !meshtasticApiUrl.startsWith("https://")){
Expand Down

0 comments on commit eabbf0c

Please sign in to comment.