3 ms·
> Our FRP framework allows us to express this in clear and readable code. For example, this is part of the code responsible for performing DNS attack mitigation
by saghm 8y ago
> Our FRP framework allows us to express this in clear and readable code. For example, this is part of the code responsible for performing DNS attack mitigation:
>
> def action_gk_dns(...):
> [...]
>
> if port != 53:
> return None
>
> if whitelisted_ip.get(ip):
> return None
>
> if ip not in ANYCAST_IPS:
> return None
>
> [...]
What does this code sample have to do with FRP? This code seems extremely trivial and doesn't give any real indication to me why you'd need a framework of any sort. It seems like they really want to emphasize that they use FRP, but this code just seems completely unrelated.
- deleted 8y ago[deleted]
- Chris911 8y agoFrom one of the linked presentations: https://github.com/cloudflare/gatelogic https://github.com/cloudflare/gatelogic