aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Main.hx')
-rw-r--r--src/server/Main.hx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/Main.hx b/src/server/Main.hx
index a0b255e..9c2f6e2 100644
--- a/src/server/Main.hx
+++ b/src/server/Main.hx
@@ -139,6 +139,8 @@ class Main {
trace("Global network is disabled in config");
} else {
if (!isNoState) Utils.getGlobalIp(ip -> {
+ final isIp6 = ip.contains(":");
+ if (isIp6) ip = '[$ip]';
globalIp = ip;
trace('Global: http://$globalIp:$port');
});
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage