package net import ( "testing" "time" ) func TestNat(t *testing.T) { var s = NatServer{ ListenAddr: "0.0.0.0:10020", enableTCP: true, } var c = NatClient{ ServiceTarget: "139.199.163.65:80", CmdTarget: "127.0.0.1:10020", enableTCP: true, } go s.Run() go c.Run() for { time.Sleep(time.Second * 20) } }