implements option to only propogate subnets

This commit is contained in:
George Harvey
2021-04-06 15:01:15 +01:00
committed by GitHub
parent 2bca63ac8a
commit 05890efee9

View File

@@ -39,7 +39,10 @@ func parse(c *caddy.Controller) (Zones, error) {
z[zone.name] = zone
for c.NextBlock() {
zone.onlySubnets = false
switch c.Val() {
case "only-propagate-subnets":
zone.onlySubnets = true
case "self":
// self [endpoint] [allowed-ips ... ]
zone.serveSelf = true