代理有问题

This commit is contained in:
cheney 2026-05-24 21:21:14 +08:00
parent 910084a86f
commit ebcec1c463

View File

@ -50,10 +50,10 @@ def handle_client(conn):
try:
b_device_socket.send(data)
except:
conn.send(b"HTTP/1.1 503 Service Unavailable\r\n\r\nB设备未连接")
conn.send(b"HTTP/1.1 503 Service Unavailable\r\n\r\nDevice B not connected")
break
else:
conn.send(b"HTTP/1.1 503 Service Unavailable\r\n\r\nB设备未连接")
conn.send(b"HTTP/1.1 503 Service Unavailable\r\n\r\nDevice B not connected")
break
except Exception as e:
print(f"用户连接出错: {e}")