fixed play button

This commit is contained in:
2025-02-14 00:45:44 +00:00
parent a9176efe88
commit f7a11df120

View File

@@ -16,13 +16,7 @@ func EscapeNAT(ScreenPort, GameplayServerPort string) (ServerPort string, Screen
ScreenSharePort = port.EntireAddress
// init config to get domain name
Config, err := config.ConfigInit()
if err != nil {
return "", "", err
}
port, err = abstractions.MapPort(GameplayServerPort, Config.DomainName, "")
port, err = abstractions.MapPort(GameplayServerPort, "", "")
if err != nil {
return "", "", err
}
@@ -33,7 +27,13 @@ func EscapeNAT(ScreenPort, GameplayServerPort string) (ServerPort string, Screen
}
func EscapeNATBarrier() (barrierKVMport string, err error) {
port, err := abstractions.MapPort("24798", "", "")
// init config to get domain name
Config, err := config.ConfigInit()
if err != nil {
return "", err
}
port, err := abstractions.MapPort("24798", Config.DomainName, "")
if err != nil {
return "", err
}