in cont_to_dict if replaced by get
This commit is contained in:
parent
ea750b0cfc
commit
2a995eabd5
Binary file not shown.
@ -293,10 +293,11 @@ class Tunnel:
|
||||
if "," in dns:
|
||||
dns = dns[:-1]
|
||||
endpoint = final_dict["Endpoint"]
|
||||
if "PresharedKey" in final_dict:
|
||||
pre_key = final_dict["PresharedKey"]
|
||||
else:
|
||||
pre_key = final_dict["PreSharedKey"]
|
||||
try:
|
||||
pre_key = final_dict.get("PresharedKey")
|
||||
pre_key = final_dict.get("PreSharedKey")
|
||||
finally:
|
||||
pass
|
||||
return address, dns, endpoint, pre_key
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user