Hi On Mon Jun 1, 2020 at 4:44 PM CEST, Boris Grozev wrote: > Hello everyone, > > We have a use-case where we don't know the IP addresses of our HTTP > proxies in advance, so we want to configure an entire network in > trusted_proxies. I opted to implement it with additional syntax in the > trusted_proxies list in order to keep the configuration under the > existing key, while avoiding a change in semantics for existing > configurations (the "." in IP literals becomes a wildcard character in > a regexp). > > Ideally this would support CIDR notation (so we can express e.g. > 172.16/12), but that seemed much more complicated and not necessary > for our case.
CIDR notation is supported by util.ip, which unfortunately is missing documentation. Example use can be found in mod_register_limits, added in this change: https://hg.prosody.im/0.11/rev/4796fdcb7146 > Let me know if there's any changes you'd like me to make in order for > the patch to be accepted. Normalize the whitespace to tabs please. -- Regards, Kim "Zash" Alvefur -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prosody-dev/C3DHCHSFAHAB.202R4TJKQDF31%40tengi.
