1. 29 Aug, 2022 6 commits
  2. 22 Aug, 2022 1 commit
    • zhifan huang's avatar
      test: add unit tests for registry, conf, tunnel · 585d8b95
      zhifan huang authored
      registry: add test for RegistryServer and registryClient,
      testRegistryServer mainly test methods concerned to http rpc request.
      Other methods that call request_dump like getBootStrpPeer is not
      include.
      testRegistryClient test the rpc call with or not with "cn" parameter.
      
      cli.conf: test each situation call the cli conf.
      
      tunnel: add test for BaseTunnelManager, MultGatewayManager
      
      tools is a util cotain method to make cert and ket files
      585d8b95
  3. 10 Aug, 2022 1 commit
  4. 12 May, 2022 1 commit
  5. 05 May, 2022 1 commit
  6. 04 May, 2022 5 commits
  7. 10 Dec, 2021 1 commit
  8. 31 Jul, 2021 2 commits
    • Julien Muchembled's avatar
      f1e95660
    • Julien Muchembled's avatar
      debian: fix restart on old OS · 865763b6
      Julien Muchembled authored
      On Debian < 10:
      - debhelper extends postint with 'try-restart', which caused re6st to
        remain stopped after upgrading from a re6st package that stopped
        services unconditionally in prerm (see previous commit);
      - deb-systemd-invoke does not check whether the service is enabled
        so 'try-restart' can't be replaced blindly with 'restart'
        (as it is the case in recent Debian).
      865763b6
  9. 03 Jul, 2021 1 commit
  10. 01 Jul, 2021 1 commit
  11. 30 Jun, 2021 1 commit
  12. 07 Jun, 2021 6 commits
  13. 04 May, 2021 1 commit
  14. 08 Apr, 2021 1 commit
  15. 31 Mar, 2021 1 commit
  16. 27 Mar, 2021 1 commit
  17. 23 Mar, 2021 1 commit
    • Joanne Hugé's avatar
      Fix TypeError in _updateCountry · ecda9f06
      Joanne Hugé authored
      Addresses passed to _updateCountry can contain countries if
      cache.my_address is used to initialize address in BaseTunnelManager init
      function, which causes resolve to be called with too many arguments.
      ecda9f06
  18. 22 Mar, 2021 1 commit
    • Joanne Hugé's avatar
      Fix two issues related to handleHello · bbde1c0d
      Joanne Hugé authored
      In some circumstances, the hello_protocol attribute could get modified
      on the wrong peer, which would raise an AttributeError.
      On reception of seqno 1 from a peer with protocol < 7, protocol could be
      equal to zero which would cause handleHello to not return True, causing
      the handshake to fail.
      bbde1c0d
  19. 11 Feb, 2021 3 commits
    • Joanne Hugé's avatar
      New --country option; add country in addresses · 85d77bd8
      Joanne 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
    • Joanne Hugé's avatar
      Add protocol to handshake with registry · bb7e6376
      Joanne Hugé authored
      bb7e6376
    • Julien Muchembled's avatar
      Add protocol to handshake between nodes · 4f327e1b
      Julien Muchembled authored
      There is a need to be able to extend the protocol without breaking
      compatibility with old nodes. This is done by sending version.protocol
      during inter-node handshake, in seqno 1 and seqno 2, so that a node
      knows what version the peers speak and use appropriate format.
      
      This is implemented with partial backward compatibility: handshake with
      an old node succeeds when the new node does not have to send seqno 1.
      4f327e1b
  20. 22 Dec, 2020 1 commit
  21. 03 Dec, 2020 1 commit
  22. 13 Jan, 2020 1 commit
  23. 10 Jan, 2020 1 commit
    • Julien Muchembled's avatar
      Bump protocol version · 5b765db0
      Julien Muchembled authored
      To reenable RTT-based metric, we usually want to force old nodes
      to upgrade, so that they don't always look faster that others.
      5b765db0