Skip to content

Commit 3367124

Browse files
committed
Fix more brokenness.
1 parent aaa6062 commit 3367124

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sshuttle/methods/pf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def setup_firewall(self, port, dnsport, nslist, family, subnets, udp):
233233
pfctl('-a sshuttle -F all')
234234
if sys.platform == "darwin":
235235
if _pf_context['Xtoken'] is not None:
236-
pfctl('-X %s' % _pf_context['Xtoken'])
236+
pfctl('-X %s' % _pf_context['Xtoken'].decode("ASCII"))
237237
elif _pf_context['started_by_sshuttle']:
238238
pfctl('-d')
239239

sshuttle/tests/test_methods_pf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_setup_firewall(mock_pf_get_dev, mock_ioctl, mock_pfctl):
176176
assert mock_ioctl.mock_calls == []
177177
assert mock_pfctl.mock_calls == [
178178
call('-a sshuttle -F all'),
179-
call("-X b'abcdefg'"),
179+
call("-X abcdefg"),
180180
]
181181
mock_pf_get_dev.reset_mock()
182182
mock_pfctl.reset_mock()

0 commit comments

Comments
 (0)