Quickfix for build error

See #94
This commit is contained in:
Mickael Remond
2019-07-27 09:22:04 -07:00
parent fe6cea870d
commit 7deaf59642

View File

@@ -109,7 +109,7 @@ func NewClient(config Config, r *Router) (c *Client, err error) {
for _, srv := range srvEntries { for _, srv := range srvEntries {
if srv.Priority <= bestSrv.Priority && srv.Weight >= bestSrv.Weight { if srv.Priority <= bestSrv.Priority && srv.Weight >= bestSrv.Weight {
bestSrv = srv bestSrv = srv
config.Address = ensurePort(srv.Target, srv.Port) config.Address = ensurePort(srv.Target, int(srv.Port))
} }
} }
} }