-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client_ip not merged as remote_ip used to in "not" expression #6349
Comments
Ah whoops, my bad. It's a regression on the matcher parsing. I did a cleanup on code style and accidentally broke the merging. For now you could write it like this:
Kinda goofy, but basically just escaping the newlines to continue specifying more IP ranges on the next line. I'll fix it for the next release though. |
Thank you @francislavoie. This seems to work too (if I'm not mistaken):
|
Yeah that works too, as per https://caddyserver.com/docs/caddyfile/matchers#examples-4 having multiple |
Hi,
The following host config fragment only works with the IP addresses listed in the first
client_ip
. Subsequentclient_ip
are denied access on Caddy 2.8.0:It used to work with
remote_ip
:Moving
client_ip 1.2.3.4
to the first line of thenot
expression allows that IP address but not the others.Trusted proxies are set:
Is there some way around this?
The text was updated successfully, but these errors were encountered: