aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Utils.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-04-30 04:29:56 +0300
committerRblSb <msrblsb@gmail.com>2020-04-30 04:29:56 +0300
commitd73ddaaa1823b38e6d1d1e402a5cee1755c2367a (patch)
tree416d44c9f0d256c4fdb6b45b07dcc14b68271390 /src/server/Utils.hx
parentd751f4fb76d9e68d56d06b5d35aa0850def063e7 (diff)
Implement simple proxy
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 218184d..ebe928b 100644
--- a/src/server/Utils.hx
+++ b/src/server/Utils.hx
@@ -1,12 +1,12 @@
package server;
-import js.node.Http;
+import js.node.Https;
import js.node.Os;
class Utils {
public static function getGlobalIp(callback:(ip:String)->Void):Void {
- Http.get("http://myexternalip.com/raw", r -> {
+ Https.get("https://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