Skip to content

Commit

Permalink
Remove trailing "." to prevent getaddrinfo failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Poikilos committed Dec 19, 2024
1 parent f1cd5f6 commit 2175228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/examples_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ def on_service_name_change(self, index, value, op):
# just ignore incomplete entries.
return
# We got info, so use the info to set *other* fields:
self.fields['host'].set(info['server'])
self.fields['host'].set(info['server'].rstrip("."))
# ^ Remove trailing "." to prevent getaddrinfo failed.
self.fields['port'].set(info['port'])
self.set_status("Hostname & Port have been set ({server}:{port})"
.format(**info))
Expand Down

0 comments on commit 2175228

Please sign in to comment.