mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
improve displaying tcp addresses
This commit is contained in:
parent
f40bf865b1
commit
46fadfc823
@ -245,7 +245,10 @@ class Address(object):
|
||||
self.family = socket.AF_INET6 if b else socket.AF_INET
|
||||
|
||||
def __repr__(self):
|
||||
return repr(self.address)
|
||||
return "{}:{}".format(self.host, self.port)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.address)
|
||||
|
||||
def __eq__(self, other):
|
||||
other = Address.wrap(other)
|
||||
|
Loading…
Reference in New Issue
Block a user