• vieira's avatar
    Order first by port range and only then by swidth · f9361d70
    vieira authored
    This change makes the subnets with the most specific port ranges come
    before subnets with larger, least specific, port ranges. Before this
    change subnets with smaller swidth would always come first and only for
    subnets with the same width would the size of the port range be
    considered.
    
    Example:
    188.0.0.0/8 -x 0.0.0.0/0:443
    Before: 188.0.0.0/8 would come first meaning that all ports would be
    routed through the VPN for the subnet 188.0.0.0/8
    After: 0.0.0.0/0:443 comes first, meaning that port 443 will be
    excluded for all subnets, including 188.0.0.0/8. All other ports of
    188.0.0.0/8 will be routed.
    f9361d70
Name
Last commit
Last update
docs Loading commit data...
sshuttle Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGES.rst Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
conftest.py Loading commit data...
requirements.txt Loading commit data...
run Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...