added change in abstractions so that node remote map ports is possible

This commit is contained in:
2025-01-05 14:20:40 +00:00
parent 67165d4bf6
commit 26c5ffc453
3 changed files with 36 additions and 7 deletions

View File

@@ -134,8 +134,8 @@ func EscapeFirewall(HostOutsideNATIP string, HostOutsideNATPort string, internal
}
//export MapPort
func MapPort(Port string, DomainName string) *C.char {
entireAddress, _, err := abstractions.MapPort(Port, DomainName)
func MapPort(Port string, DomainName string, ServerAddress string) *C.char {
entireAddress, _, err := abstractions.MapPort(Port, DomainName, ServerAddress)
if err != nil {
return C.CString(err.Error())
}