Skip to content

Commit

Permalink
Update ztApi.ts - change default URL of the Local Zerotier URL
Browse files Browse the repository at this point in the history
I think address http://zerotier:9993 may be a bit misleading, especially for the standalone version installations.
My proposition is to use by default (if not specified in .env file ZT_ADDR variable) http://127.0.0.1:9993 which should work everywhere.
  • Loading branch information
tinola authored Nov 1, 2023
1 parent 01fa604 commit 6f564b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ztApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (os.platform() === "freebsd") {
ZT_FILE = process.env.ZT_SECRET_FILE || `${ZT_FOLDER}/authtoken.secret`;
}

const LOCAL_ZT_ADDR = process.env.ZT_ADDR || "http://zerotier:9993";
const LOCAL_ZT_ADDR = process.env.ZT_ADDR || "http://127.0.0.1:9993";
const CENTRAL_ZT_ADDR = "https://api.zerotier.com/api/v1";

let ZT_SECRET = process.env.ZT_SECRET;
Expand Down

0 comments on commit 6f564b2

Please sign in to comment.