fix: harden cross-browser dashboard interactions

This commit is contained in:
Aimili
2026-08-27 01:44:09 +08:00
parent bbc2457498
commit f9361d0a7d
3 changed files with 354 additions and 122 deletions
+3
View File
@@ -254,6 +254,9 @@ def socks5_client(client: socket.socket, first_byte: bytes) -> None:
return
client.sendall(b"\x01\x00")
else:
if 0 not in methods:
client.sendall(b"\x05\xff")
return
client.sendall(b"\x05\x00")
version, command, _, address_type = recv_exact(client, 4)
if version != 5 or command != 1: