diff --git a/sshuttle/methods/pf.py b/sshuttle/methods/pf.py index e988531..db91c6e 100644 --- a/sshuttle/methods/pf.py +++ b/sshuttle/methods/pf.py @@ -225,7 +225,7 @@ class Method(BaseMethod): if sys.platform == "darwin": o = pfctl('-E') _pf_context['Xtoken'] = \ - re.search(r'Token : (.+)', o[1]).group(1) + re.search(b'Token : (.+)', o[1]).group(1) elif b'INFO:\nStatus: Disabled' in pf_status: pfctl('-e') _pf_context['started_by_sshuttle'] = True