aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/Utils.hx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/Utils.hx b/src/server/Utils.hx
index 22ddc77..9c88bc2 100644
--- a/src/server/Utils.hx
+++ b/src/server/Utils.hx
@@ -9,6 +9,9 @@ class Utils {
Http.get("http://myexternalip.com/raw", r -> {
r.setEncoding("utf8");
r.on("data", callback);
+ }).on("error", e -> {
+ trace("Warning: connection error, server is local.");
+ callback("127.0.0.1");
});
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage