aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Utils.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-05-12 06:07:01 +0300
committerRblSb <msrblsb@gmail.com>2020-05-12 06:07:01 +0300
commit28a1d1c271dd722dc36cebc5b61f87d80138dba3 (patch)
treea09fda49dc8896af109a0746bef36a4a6c4c196e /src/server/Utils.hx
parent2f4005083452d61ddaf7542b195927b1d0d6227f (diff)
Minor improvements
Diffstat (limited to 'src/server/Utils.hx')
-rw-r--r--src/server/Utils.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Utils.hx b/src/server/Utils.hx
index ebe928b..218184d 100644
--- a/src/server/Utils.hx
+++ b/src/server/Utils.hx
@@ -1,12 +1,12 @@
package server;
-import js.node.Https;
+import js.node.Http;
import js.node.Os;
class Utils {
public static function getGlobalIp(callback:(ip:String)->Void):Void {
- Https.get("https://myexternalip.com/raw", r -> {
+ Http.get("http://myexternalip.com/raw", r -> {
r.setEncoding("utf8");
r.on("data", callback);
}).on("error", e -> {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage