Implement tcp proxy with single forward
This commit is contained in:
@@ -28,6 +28,13 @@ func GetRoutes() map[string]string {
|
||||
return m
|
||||
}
|
||||
|
||||
func GetTCP() (string, bool) {
|
||||
v := packable.NewString()
|
||||
conf.Get(nsConf, flagTCP, v)
|
||||
tcpAddr := v.String()
|
||||
return tcpAddr, notEmpty(tcpAddr)
|
||||
}
|
||||
|
||||
func GetSSL() (string, string, bool) {
|
||||
v := packable.NewString()
|
||||
conf.Get(nsConf, flagCert, v)
|
||||
|
||||
Reference in New Issue
Block a user