You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to replace Apache's Require host directive with this plugin (docs).
I do however need support for wildcards and suffixes e.g.
@paypal {
remote_host.paypal.com # matches notify.paypal.com, but also foo.bar.paypal.com remote_host*.paypal.com # matches notify.paypal.com, but not foo.bar.paypal.com
}
The current RegExp doesn't find either acceptable:
Hi @dmke, thanks for your feature request! To support suffixes and wildcards, the plugin would have to implement reverse DNS lookups (#5), which it currently doesn't support. It's not hard to implement, but am still not expecting to get to this very soon, unfortunately.
This will (eventually) become a series of PRs. I'm currently working on tests, before I'll start a larger refactoring. The next big step will be swapping the stdlib resolver for miekg/dns (which is already part of Caddy) and replacing the cache in order to support TTLs (#1). I believe that to be the necessary foundation in order to tackle #4 (this issue) and #5 (rDNS lookups).
The next big step will be swapping the stdlib resolver for miekg/dns
I intentionally didn't want to use that package (even though it's very useful), because I tend to be very economical with regard to external dependencies. But if you're saying it's already part of Caddy anyway, then it's fine 👍.
I'm looking to replace Apache's
Require host
directive with this plugin (docs).I do however need support for wildcards and suffixes e.g.
The current RegExp doesn't find either acceptable:
caddy-remote-host/plugin.go
Line 90 in b21775a
(The matcher loop in
(*MatchRemoteHost) resolveIPs()
probably needs adjusting as well.)The text was updated successfully, but these errors were encountered: