Discord alert: Allow public_ ip and port overrides#1787
Discord alert: Allow public_ ip and port overrides#1787robobenklein wants to merge 1 commit intoGameServerManagers:developfrom
Conversation
|
Good idea, but it won't work if public IP is an IPv6, as it currently occurs when ipv6 is available. |
|
@UltimateByte Can you explain further? Perhaps give an example? This doesn't introduce any new bugs as far as I'm aware, it just gives another option for resolving a case in which the IP field of the notification is wrong. |
|
Quick example : root@gaben:~# public_ip="10:AB:24"; ip="127.0.0.1"; value="${public_ip:-ip}"; echo "$value"
10:AB:24Well in my case ( https://hastebin.com/osefopepay ) it would try to query the game server on ipv6, which isn't supported. I'm not saying your code is bad, but in order to not introduce a bug, you would need to check if the public IP is an IPv6 or not. Since I don't think any game server supports IPv6, or at least not many as of now, the best solution would be to correct the IP checking system to show only public IPv4. |
|
This change only modifies the IP given through a Discord notification, it doesn't change anything about how LGSM queries a server or binds to an IP. You could set this Here the For example, I plan to set mine to something akin to |
|
Actually @UltimateByte you just helped me realize how confusing this is calling it |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
#1664