16 lines
228 B
Go
16 lines
228 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"zproxy/proxy"
|
||
|
|
"zproxy/zlog"
|
||
|
|
)
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
server := proxy.NewServerProxy()
|
||
|
|
err := server.ServeTCP(proxy.ServerAddr)
|
||
|
|
if err != nil {
|
||
|
|
zlog.Error("exist server proxy: ", err.Error())
|
||
|
|
return
|
||
|
|
}
|
||
|
|
}
|