mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update mw.py
This commit is contained in:
@@ -496,6 +496,9 @@ def checkDomainPanel():
|
||||
return False
|
||||
|
||||
ip = getHostAddr()
|
||||
if isVaildIpV6(ip):
|
||||
return False
|
||||
|
||||
if domain == '':
|
||||
if ip in ['127.0.0.1', 'localhost', '::1']:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user