mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-06-10 13:30:49 +00:00
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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user