Nginx IPv6 support (#5178)

* Nginx IPv6 support

* Test and lint fixes

* IPv6 tests to Nginx plugin

* Make ipv6_info() port aware

* Named tuple values for readability

* Lint fix

* Requested changes
This commit is contained in:
Joona Hoikkala
2017-10-31 19:41:32 -05:00
committed by ohemorange
parent 2a13f00301
commit 68e37b03c8
9 changed files with 171 additions and 39 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ class Addr(object):
"""Normalized representation of addr/port tuple
"""
if self.ipv6:
return (self._normalize_ipv6(self.tup[0]), self.tup[1])
return (self.get_ipv6_exploded(), self.tup[1])
return self.tup
def __eq__(self, other):