Fix Forwarded host regular expression
This commit is contained in:
parent
485ad5a80d
commit
32e2111745
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ http {
|
|||
|
||||
# IPv6 addresses (with port or not) need to quoted (it must be already
|
||||
# bracketed).
|
||||
"~^\[[^]]+\](:[0-9]+)*$" "host=\"$http_host\"";
|
||||
"~^\[[0-9A-Fa-f:.]+\](:[0-9]+)*$" "host=\"$http_host\"";
|
||||
|
||||
# IPv4:port and reg-name:port and need to be quoted.
|
||||
"~^[!$&'()*+,;=._~%0-9A-Za-z-]+:[0-9]+$" "host=\"$http_host\"";
|
||||
|
|
Loading…
Reference in a new issue