Merge pull request #667 from brostosjoined/master

Support IPv6 address on manualtab
This commit is contained in:
Eric Froemling 2024-03-01 17:27:37 -08:00 committed by GitHub
commit 7df55ecd14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -50,3 +50,6 @@
### Rikko
- Created the original "reject_recently_left_players" plugin
### brostos
- Added support for joining using ipv6 address

View File

@ -48,7 +48,7 @@ class _HostLookupThread(Thread):
try:
import socket
result = socket.gethostbyname(self._name)
result = [item[-1][0] for item in socket.getaddrinfo(self.name, self._port)][0]
except Exception:
result = None
bui.pushcall(