Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: cannot access local variable 'used_ports' where it is not associated with a value #829

Open
taasan opened this issue Jan 7, 2023 · 0 comments

Comments

@taasan
Copy link

taasan commented Jan 7, 2023

sshuttle crashes when using --listen='127.0.0.1:12200,[::1]:12200'

used_ports is initialized conditionally.

used_ports = []

Traceback (most recent call last):
   File "/venv/bin/sshuttle", line 8, in <module>
     sys.exit(main())
              ^^^^^^
   File "/venv/lib/python3.11/site-packages/sshuttle/cmdline.py", line 89, in main
     return_code = client.main(ipport_v6, ipport_v4,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/venv/lib/python3.11/site-packages/sshuttle/client.py", line 965, in main
     bound = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant