Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • release/1.1
  • encrypt_comments
  • mnemonic_dewif
  • authors_rules
  • 0.14
  • rtd
  • 1.2.1 protected
  • 1.2.0 protected
  • 1.1.1 protected
  • 1.1.0 protected
  • 1.0.0 protected
  • 1.0.0rc1 protected
  • 1.0.0rc0 protected
  • 1.0.0-rc protected
  • 0.62.0 protected
  • 0.61.0 protected
  • 0.60.1 protected
  • 0.58.1 protected
  • 0.60.0 protected
  • 0.58.0 protected
  • 0.57.0 protected
  • 0.56.0 protected
  • 0.55.1 protected
  • 0.55.0 protected
  • 0.54.3 protected
  • 0.54.2 protected
27 results

test_endpoints.py

Blame
    • Moul's avatar
      6c3e0661
      [fix] #170: endpoint: Fix ipv4/host attributes mix up · 6c3e0661
      Moul authored
      In case only an IPv4 is present, the latter ends up in server/host attribute
      Since HOST_REGEX is using dots, the IPv4 is matched as a host
      
      Only happening to BMA(S) and GVA since the other endpoints' regex are
      matiching one among (host|ipv6|ipv4)
      
      Use ipaddress as a trick after regex matching to
      switch ipv4 and server/host attributes
      6c3e0661
      History
      [fix] #170: endpoint: Fix ipv4/host attributes mix up
      Moul authored
      In case only an IPv4 is present, the latter ends up in server/host attribute
      Since HOST_REGEX is using dots, the IPv4 is matched as a host
      
      Only happening to BMA(S) and GVA since the other endpoints' regex are
      matiching one among (host|ipv6|ipv4)
      
      Use ipaddress as a trick after regex matching to
      switch ipv4 and server/host attributes