udp: fix privilege_mode not success for udp type

This commit is contained in:
fatedier
2016-12-19 23:30:48 +08:00
parent 2bf1d3e922
commit d04d31b39a
3 changed files with 9 additions and 8 deletions

View File

@@ -194,7 +194,7 @@ func LoadConf(confFile string) (err error) {
proxyClient.PrivilegeToken = PrivilegeToken
}
if proxyClient.Type == "tcp" {
if proxyClient.Type == "tcp" || proxyClient.Type == "udp" {
// remote_port
tmpStr, ok = section["remote_port"]
if ok {