mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-05 21:48:54 +01:00
Fix tests under PyPy.
This commit is contained in:
parent
75b6865a1d
commit
51eb7862c4
@ -112,7 +112,7 @@ def pf_query_nat(family, proto, src_ip, src_port, dst_ip, dst_port):
|
||||
c_char * sizeof(pnl)).from_address(addressof(pnl)))
|
||||
|
||||
ip = socket.inet_ntop(
|
||||
pnl.af, (c_char * length).from_address(addressof(pnl.rdaddr)))
|
||||
pnl.af, (c_char * length).from_address(addressof(pnl.rdaddr)).raw)
|
||||
port = socket.ntohs(pnl.rdxport.port)
|
||||
return (ip, port)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user