Implement tcp proxy with single forward

This commit is contained in:
Bel LaPointe
2019-10-02 09:07:59 -06:00
parent 698edf7e45
commit 8a90a3adda
3 changed files with 55 additions and 0 deletions

View File

@@ -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)