ck 4 năm trước cách đây
mục cha
commit
d36f1d540c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      ServerWrapper.py

+ 2 - 1
ServerWrapper.py

@@ -25,7 +25,8 @@ class HttpServerWrapper(tornado.web.Application):
         self.port = port
         handlers = urls
         r = requests.get("http://jsonip.com").json()['ip']
-        auth =True if r == '47.111.161.141' else False
+
+        auth = True if r == '47.111.161.141' and sys.argv[1] == '8008' else False
         settings = {
             "port" : sys.argv[1],
             "auth": auth,