Skip to content

Commit 51eb786

Browse files
committed
Fix tests under PyPy.
1 parent 75b6865 commit 51eb786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshuttle/methods/pf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def pf_query_nat(family, proto, src_ip, src_port, dst_ip, dst_port):
112112
c_char * sizeof(pnl)).from_address(addressof(pnl)))
113113

114114
ip = socket.inet_ntop(
115-
pnl.af, (c_char * length).from_address(addressof(pnl.rdaddr)))
115+
pnl.af, (c_char * length).from_address(addressof(pnl.rdaddr)).raw)
116116
port = socket.ntohs(pnl.rdxport.port)
117117
return (ip, port)
118118

0 commit comments

Comments
 (0)