pkg/proxy: fix fmt

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
release-3.4
Gyuho Lee 2018-04-20 11:26:38 -07:00
parent f205b22434
commit 0411b89d69
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ func NewServer(cfg ServerConfig) Server {
_, fromPort, err := net.SplitHostPort(cfg.From.Host)
if err == nil {
s.fromPort, err = strconv.Atoi(fromPort)
s.fromPort, _ = strconv.Atoi(fromPort)
}
var toPort string
_, toPort, err = net.SplitHostPort(cfg.To.Host)