mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
default should not be None
Fixed default value when self.address has not been set
This commit is contained in:
parent
77aeac11a9
commit
a85e4bc75c
@ -136,7 +136,7 @@ class ServerConnection(tcp.TCPClient, stateobject.StateObject):
|
||||
d = super(ServerConnection, self).get_state(short)
|
||||
d.update(
|
||||
address=({"address": self.address(),
|
||||
"use_ipv6": self.address.use_ipv6} if self.address else None),
|
||||
"use_ipv6": self.address.use_ipv6} if self.address else {}),
|
||||
source_address=({"address": self.source_address(),
|
||||
"use_ipv6": self.source_address.use_ipv6} if self.source_address else None),
|
||||
cert=self.cert.to_pem() if self.cert else None
|
||||
|
Loading…
Reference in New Issue
Block a user