Skip to content

Commit 529d9da

Browse files
committed
panic fix
1 parent 7fcad90 commit 529d9da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/proxy/ProxyRouter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ func NewProxyRouterImpl(logger *zap.SugaredLogger, proxyCfg *Config, enforcer ca
5757
proxy := make(map[string]func(writer http.ResponseWriter, request *http.Request))
5858
for s, connection := range proxyConnection {
5959
proxy[s], err = NewHTTPReverseProxy(fmt.Sprintf("http://%s:%s", connection.Host, connection.Port), client.Transport, enforcer)
60-
}
61-
if err != nil {
62-
return nil, err
60+
if err != nil {
61+
return nil, err
62+
}
6363
}
6464

6565
router := &ProxyRouterImpl{

0 commit comments

Comments
 (0)