remove a ',' in DNS Name

This commit is contained in:
2024-08-25 11:03:15 +02:00
parent 4574f1416e
commit 8d657f7c09
3 changed files with 15 additions and 3 deletions

2
wg_func.py Normal file → Executable file
View File

@ -91,6 +91,8 @@ class ConToDict:
# end... result a Dictionary
address = finaldict['Address']
dns = finaldict['DNS']
if ',' in dns:
dns = dns[:-1]
endpoint = finaldict['Endpoint']
return address, dns, endpoint