Update endpoint.go (#2012)

status-code-override
songzhibin97 3 years ago committed by chenzhihui
parent 291f0f3ad0
commit fa3d9c3fc1
  1. 4
      internal/endpoint/endpoint.go

@ -21,12 +21,10 @@ func ParseEndpoint(endpoints []string, scheme string, isSecure bool) (string, er
if err != nil {
return "", err
}
if u.Scheme == scheme {
if IsSecure(u) == isSecure {
if u.Scheme == scheme && IsSecure(u) == isSecure {
return u.Host, nil
}
}
}
return "", nil
}

Loading…
Cancel
Save