mirror of
https://github.com/hotyue/IP-Sentinel.git
synced 2026-08-28 19:48:07 +08:00
fix(legacy): 🐛 降级 Python socketserver 语法,修复 Debian 9 (Python 3.5) 无法启动 Webhook 的 Bug
This commit is contained in:
@@ -234,8 +234,8 @@ class ThreadedDualStackServer(socketserver.ThreadingMixIn, socketserver.TCPServe
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
bind_addr = "::" if socket.has_ipv6 else ""
|
bind_addr = "::" if socket.has_ipv6 else ""
|
||||||
with ThreadedDualStackServer((bind_addr, PORT), AgentHandler) as httpd:
|
httpd = ThreadedDualStackServer((bind_addr, PORT), AgentHandler)
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
# ====================================================================================
|
# ====================================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user