added NAT traversal

This commit is contained in:
2023-02-19 23:11:35 +00:00
parent 2bc03b8048
commit b7cfdba90d
7 changed files with 1086 additions and 231 deletions

16
core/escape-NAT_test.go Normal file
View File

@@ -0,0 +1,16 @@
package core
import (
"fmt"
"testing"
)
func TestEscapeNAT(t *testing.T) {
nat, s, err := EscapeNAT("8090")
if err != nil {
fmt.Println(err)
t.Fail()
}
fmt.Println(nat)
fmt.Println(s)
}