-
Scott Kuhl authored
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.
6d4261e3
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| test_firewall.py | ||
| test_helpers.py | ||
| test_methods_nat.py | ||
| test_methods_pf.py | ||
| test_methods_tproxy.py | ||
| test_options.py | ||
| test_sdnotify.py |