QR2/SB: Allow different public IP for TCP and UDP

This commit is contained in:
mkwcat
2024-02-06 19:41:22 -05:00
parent 820138ac60
commit 4dda86651a
2 changed files with 4 additions and 6 deletions

View File

@@ -205,7 +205,7 @@ func handleServerListRequest(conn net.Conn, buffer []byte) {
continue
}
if publicip == callerPublicIP {
if publicip == callerPublicIP || server["+gppublicip"] == callerPublicIP {
// Use the real public IP if it matches the caller's
ip, err := strconv.ParseInt(publicip, 10, 32)
if err != nil {