摘要:
Golang TCP转发到指定地址 第二个版本,设置指定ip地址 代码 // tcpForward package main import ( "fmt" "net" "os" ) func TcpForward(port int, forAddr string) { lisPort := fmt.Sprint(":", port) listen,... 阅读全文
posted @ 2019-06-17 20:18
波士地盘
阅读(1076)
评论(0)
推荐(0)
摘要:
Golang tcp 转发 第一版本 accept获取的Conn里的localAddr做为源地址,remoteAddr来做为目的地址 // tcpForward package main import ( "fmt" "net" "os" ) func TcpForward(port int) { lisPort := fmt.Sprint(":", po... 阅读全文
posted @ 2019-06-17 17:30
波士地盘
阅读(1072)
评论(0)
推荐(0)

浙公网安备 33010602011771号