Fix incorrect derivation of endpoint from fallback URL.

The port would be appended twice if you configure e.g.

    [fallback]
    proxy-to = "https://codeberg.page:443"

V12-Ref: F-77193
This commit is contained in:
Catherine
2026-05-30 14:25:32 +00:00
parent 8883c78250
commit 0cd96a2b0b
+1 -1
View File
@@ -73,7 +73,7 @@ func tryDialWithSNI(ctx context.Context, domain string) (bool, error) {
return false, nil
}
connectHost := fallbackURL.Host
connectHost := fallbackURL.Hostname()
if fallbackURL.Port() != "" {
connectHost += ":" + fallbackURL.Port()
} else {