Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
Co-authored-by: ShadowNinja <[email protected]>
  • Loading branch information
sfan5 and ShadowNinja authored Oct 22, 2024
1 parent 6223b5a commit 80446c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ def asyncFinishThread(server):

if checkAddress:
addresses = set(data[4][0] for data in info)
have_v4 = any("." in s for s in addresses)
have_v6 = any(":" in s for s in addresses)
have_v4 = any(d[0] == socket.AF_INET for d in info)
have_v6 = any(d[0] == socket.AF_INET6 for d in info)
if server["ip"] in addresses:
pass
elif (":" in server["ip"] and not have_v6) or ("." in server["ip"] and not have_v4):
Expand Down

0 comments on commit 80446c0

Please sign in to comment.