@
azh7138m 我从你的 released 下了 amd_64 版本到 centos7.6 64bit 上测试,config.json 位于 portfwd 同目录下,配置如下:
```
{
"proxy": {
"5000/10000": "
47.74.XXX.XXX:5000"
},
"APIPort": ":3001"
}
```
结果:
```
goroutine 5525 [IO wait]:
internal/poll.runtime_pollWait(0x7f02a97a06a8, 0x72, 0x0)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc000ed8798, 0x72, 0x0, 0x0, 0x0)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc000ed8798, 0xc0015dff00, 0xffe3, 0xffe3)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).ReadFrom(0xc000ed8780, 0xc0015dff15, 0xffe3, 0xffe3, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/internal/poll/fd_unix.go:219 +0x168
net.(*netFD).readFrom(0xc000ed8780, 0xc0015dff15, 0xffe3, 0xffe3, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/net/fd_unix.go:208 +0x5b
net.(*UDPConn).readFrom(0xc00000c908, 0xc0015dff15, 0xffe3, 0xffe3, 0x0, 0x0, 0x0, 0x0)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/net/udpsock_posix.go:47 +0x6a
net.(*UDPConn).ReadFromUDP(0xc00000c908, 0xc0015dff15, 0xffe3, 0xffe3, 0x0, 0x0, 0x0, 0x0)
/home/travis/.gimme/versions/go1.11.13.linux.amd64/src/net/udpsock.go:109 +0x6d
github.com/docker/go-connections/proxy.(*UDPProxy).Run(0xc00105ba40) /home/travis/gopath/src/
github.com/docker/go-connections/proxy/udp_proxy.go:116 +0x1e1
main.prepareUDPHandler(0x1e4f, 0xc000ed4840)
/home/travis/gopath/src/
github.com/muzea/portfwd/portfw.go:100 +0x1e2
created by main.addProxyItem
/home/travis/gopath/src/
github.com/muzea/portfwd/portfw.go:61 +0x28e
```