ck hace 4 años
padre
commit
d36f1d540c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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,