Explorar el Código

Fix wrong url check logic; change port number

master
Fen Dweller hace 6 años
padre
commit
e69f42e7f7
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      app.py

+ 4
- 2
app.py Ver fichero

@@ -22,7 +22,9 @@ def agegate():
def accept():
url = request.args.get("url", default=None)

if urlparse(url).netloc and urlparse(url).netloc[:-9] != "crux.sexy":
print(urlparse(url).netloc)
if urlparse(url).netloc and urlparse(url).netloc[-9:] != "crux.sexy":
print("oops")
url = "/"

if not url:
@@ -33,4 +35,4 @@ def accept():
return res

if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0', port=5001)
app.run(debug=True, host='0.0.0.0', port=5002)

Cargando…
Cancelar
Guardar