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
No known key found for this signature in database
GPG key ID: E6F6045D79965AA3

View file

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