소스 검색

Fix wrong url check logic; change port number

master
Fen Dweller 6 년 전
부모
커밋
e69f42e7f7
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. +4
    -2
      app.py

+ 4
- 2
app.py 파일 보기

@@ -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)

불러오는 중...
취소
저장