ck 4 anos atrás
pai
commit
d36f1d540c
1 arquivos alterados com 2 adições e 1 exclusões
  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,