mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-12-02 04:43:41 +01:00
6d4261e3f9
Add an "is_supported()" function to the different methods so that each method can include whatever logic they wish to indicate if they are supported on a particular machine. Previously, methods/__init__.py contained all of the logic for selecting individual methods. Now, it iterates through a list of possible options and stops on the first method that it finds that is_supported(). Currently, the decision is made based on the presence of programs in the PATH. In the future, things such as the platform sshuttle is running on could be considered. |
||
---|---|---|
.. | ||
test_firewall.py | ||
test_helpers.py | ||
test_methods_nat.py | ||
test_methods_pf.py | ||
test_methods_tproxy.py | ||
test_options.py | ||
test_sdnotify.py |