Hi Brian,
On 8/28/19 6:35 PM, Brian Sullivan wrote:
> I figured it out ... the following works fine. Maybe the dq object is
> readonly?
Most parts of dq are indeed read-only, except for those that are
documented as 'settable': https://dnsdist.org/reference/dq.html
Best regards,
Remi
> *-- Any
I figured it out ... the following works fine. Maybe the dq object is
readonly?
*-- Any traffic that exeeds max qps will be loggedfunction
rateLimitRule(dq) local ca = dq.remoteaddr ca:truncate(24) errlog("Rate
Limit Exceeded: DNSDistRateLimiting "..ca:toString()) return
DNSAction.None,
My guess is that dq.remoteaddr:truncate(24) doesn't truncate the address in dq.
Instead it *returns* the truncated address.
Winfried
Am 28. August 2019 17:35:24 MESZ schrieb Brian Sullivan
:
>Hi All,
>
>I am trying to use the truncate function associated with the
>CombAddress
>object.
>
>Here
Hi All,
I am trying to use the truncate function associated with the CombAddress
object.
Here is the config:
*-- Any traffic that exceeds max qps will be loggedfunction
rateLimitRule(dq) dq.remoteaddr:truncate(24) errlog("Rate Limit Exceeded:
DNSDistRateLimiting "..dq.remoteaddr:toString(