Linter update & fixes

This commit is contained in:
Neil Alexander
2026-01-18 14:51:52 +00:00
parent 24482b7dbe
commit fd46eab3b9
11 changed files with 36 additions and 29 deletions

View File

@@ -88,7 +88,7 @@ func (l *links) newLinkWS() *linkWS {
}
func (l *linkWS) dial(ctx context.Context, url *url.URL, info linkInfo, options linkOptions) (net.Conn, error) {
return l.links.findSuitableIP(url, func(hostname string, ip net.IP, port int) (net.Conn, error) {
return l.findSuitableIP(url, func(hostname string, ip net.IP, port int) (net.Conn, error) {
u := *url
u.Host = net.JoinHostPort(ip.String(), fmt.Sprintf("%d", port))
addr := &net.TCPAddr{