mirror of
https://github.com/caddyserver/caddy.git
synced 2026-03-09 11:35:38 -04:00
caddyhttp: Don't append port 0 (fix #7450)
This commit is contained in:
parent
3bb22672f9
commit
780640d1e7
@ -497,7 +497,8 @@ func (app *App) makeRedirRoute(redirToPort uint, matcherSet MatcherSet) Route {
|
||||
if redirToPort != uint(app.httpPort()) &&
|
||||
redirToPort != uint(app.httpsPort()) &&
|
||||
redirToPort != DefaultHTTPPort &&
|
||||
redirToPort != DefaultHTTPSPort {
|
||||
redirToPort != DefaultHTTPSPort &&
|
||||
redirToPort > 0 {
|
||||
redirTo += ":" + strconv.Itoa(int(redirToPort))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user