fixed play button

This commit is contained in:
2025-02-14 00:48:33 +00:00
parent f7a11df120
commit 4eba314592

View File

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