• Johan Hugé's avatar
    New --country option; add country in addresses · 85d77bd8
    Johan Hugé authored
    This commit concerns networks that use the --same-country option.
    We recently discovered that the IP geolocation database contains
    incorrect entries. To work around this, the protocol needs to be
    changed by adding the country as 4th field in addresses (the first 3
    are: ip, port, protocol) and the new --country option allows a node
    to announce a country that differs from the one the GeoIP DB.
    
    Thanks to the previous commits it's possible to implement backward
    compatibility, by not sending the 4th field (country) to nodes that
    can't parse it. Of course, these old nodes would continue to not
    create appropriate tunnels and after a while, the administrator of
    the network may decide to increase registry's --min-protocol (7).
    
    In a network with only nodes that implement this last version of the
    protocol, the nodes may only use the GeoIP DB to resolve their own IPs.
    
    See merge request !27
    85d77bd8
Name
Last commit
Last update
..
cli Loading commit data...
__init__.py Loading commit data...
cache.py Loading commit data...
ctl.py Loading commit data...
debug.py Loading commit data...
ovpn-client Loading commit data...
ovpn-server Loading commit data...
plib.py Loading commit data...
registry.py Loading commit data...
rina.py Loading commit data...
tunnel.py Loading commit data...
upnpigd.py Loading commit data...
utils.py Loading commit data...
version.py Loading commit data...
x509.py Loading commit data...