remove a ',' in DNS Name
This commit is contained in:
parent
4574f1416e
commit
8d657f7c09
16
.idea/workspace.xml
generated
16
.idea/workspace.xml
generated
@ -4,7 +4,8 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="940e1630-c825-4d4c-be80-bc11f543c122" name="Changes" comment="little fixes in Class Import">
|
<list default="true" id="940e1630-c825-4d4c-be80-bc11f543c122" name="Changes" comment="fix label when laat Tunnel delete and fix Tuple error in delete and Start/Stop when listbox empty">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/wg_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/wg_func.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/wg_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/wg_func.py" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
@ -210,7 +211,15 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1724416642213</updated>
|
<updated>1724416642213</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="16" />
|
<task id="LOCAL-00016" summary="fix label when laat Tunnel delete and fix Tuple error in delete and Start/Stop when listbox empty">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1724495688099</created>
|
||||||
|
<option name="number" value="00016" />
|
||||||
|
<option name="presentableId" value="LOCAL-00016" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1724495688099</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="17" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
@ -252,6 +261,7 @@
|
|||||||
<MESSAGE value="In FrameWidged Class else Block StrVar, this resorts reference and variable assignment together" />
|
<MESSAGE value="In FrameWidged Class else Block StrVar, this resorts reference and variable assignment together" />
|
||||||
<MESSAGE value="add method init_and_report and label_empty to Class ShowAddress" />
|
<MESSAGE value="add method init_and_report and label_empty to Class ShowAddress" />
|
||||||
<MESSAGE value="little fixes in Class Import" />
|
<MESSAGE value="little fixes in Class Import" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="little fixes in Class Import" />
|
<MESSAGE value="fix label when laat Tunnel delete and fix Tuple error in delete and Start/Stop when listbox empty" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="fix label when laat Tunnel delete and fix Tuple error in delete and Start/Stop when listbox empty" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
2
wg_func.py
Normal file → Executable file
2
wg_func.py
Normal file → Executable file
@ -91,6 +91,8 @@ class ConToDict:
|
|||||||
# end... result a Dictionary
|
# end... result a Dictionary
|
||||||
address = finaldict['Address']
|
address = finaldict['Address']
|
||||||
dns = finaldict['DNS']
|
dns = finaldict['DNS']
|
||||||
|
if ',' in dns:
|
||||||
|
dns = dns[:-1]
|
||||||
endpoint = finaldict['Endpoint']
|
endpoint = finaldict['Endpoint']
|
||||||
return address, dns, endpoint
|
return address, dns, endpoint
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user