From 51eb7862c4ee23786d258951c263260bd4602e73 Mon Sep 17 00:00:00 2001 From: Brian May Date: Wed, 18 Nov 2015 20:07:03 +1100 Subject: [PATCH] Fix tests under PyPy. --- sshuttle/methods/pf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshuttle/methods/pf.py b/sshuttle/methods/pf.py index 19a5b25..16147d9 100644 --- a/sshuttle/methods/pf.py +++ b/sshuttle/methods/pf.py @@ -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)