From 389a12aeb50fe2d7b8246f1e869dc85c72c12aa1 Mon Sep 17 00:00:00 2001 From: jraylan Date: Sat, 25 Jan 2025 08:03:57 -0300 Subject: [PATCH] Add comment --- sshuttle/cmdline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshuttle/cmdline.py b/sshuttle/cmdline.py index ab45378..94ee582 100644 --- a/sshuttle/cmdline.py +++ b/sshuttle/cmdline.py @@ -38,6 +38,8 @@ def main(): helpers.verbose = opt.verbose try: + # Since namespace and namespace-pid options are only available + # in linux, we must check if it exists with getattr namespace = getattr(opt, 'namespace', None) namespace_pid = getattr(opt, 'namespace_pid', None) if namespace or namespace_pid: