fix codeql issue

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-09-06 10:51:03 +03:00
parent 0e97049e1d
commit ad58ab6943

View File

@ -53,7 +53,7 @@ func (d *dns) Lookup(opts ...QueryOption) ([]Route, error) {
for i, ip := range ips { for i, ip := range ips {
result[i] = Route{ result[i] = Route{
Service: options.Service, Service: options.Service,
Address: fmt.Sprintf("%s:%d", ip, uint16(p)), Address: fmt.Sprintf("%s:%d", ip, p),
} }
} }
return result, nil return result, nil