• Scott Kuhl's avatar
    Refactor automatic method selection. · 6d4261e3
    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
ipfw.py 8.54 KB