mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 07:23:37 +08:00
Merge pull request #667 from brostosjoined/master
Support IPv6 address on manualtab
This commit is contained in:
commit
7df55ecd14
@ -50,3 +50,6 @@
|
|||||||
|
|
||||||
### Rikko
|
### Rikko
|
||||||
- Created the original "reject_recently_left_players" plugin
|
- Created the original "reject_recently_left_players" plugin
|
||||||
|
|
||||||
|
### brostos
|
||||||
|
- Added support for joining using ipv6 address
|
||||||
|
|||||||
@ -48,7 +48,7 @@ class _HostLookupThread(Thread):
|
|||||||
try:
|
try:
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
result = socket.gethostbyname(self._name)
|
result = [item[-1][0] for item in socket.getaddrinfo(self.name, self._port)][0]
|
||||||
except Exception:
|
except Exception:
|
||||||
result = None
|
result = None
|
||||||
bui.pushcall(
|
bui.pushcall(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user