mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-05-31 04:37:20 +02:00
Updated location rewrite logic
- Updated to a much more relax logic for handling domain with port redirection
This commit is contained in:
parent
a3cccee162
commit
ca7cd0476c
@ -49,7 +49,7 @@ func replaceLocationHost(urlString string, rrr *ResponseRewriteRuleSet, useTLS b
|
||||
//That usually means the user have invalidly configured the web server to use port 80 or 443
|
||||
//for http or https. We should not modify the location header in this case.
|
||||
|
||||
} else {
|
||||
} else if strings.Contains(u.Host, ":") && err == nil {
|
||||
//Other port numbers. Do not modify location header
|
||||
return urlString, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user