From 5509a7b3ae7fd04e4d0c0d21100cedeb49d97f5e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 7 Jun 2024 19:45:07 +0800 Subject: [PATCH] Update mw.py --- class/core/mw.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/class/core/mw.py b/class/core/mw.py index 351a2c916d..89cb4a3e2f 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -1305,7 +1305,10 @@ def getClientIp(): def checkDomainPanel(): tmp = getHost() domain = readFile('data/bind_domain.pl') - port = readFile('data/port.pl').strip() + + port = 7200 + if os.path.exists('data/port.pl'): + port = readFile('data/port.pl').strip() scheme = 'http'