mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-22 09:29:50 +00:00
AdvancedForwarding: implemented conditional forwarding client subnet. Updated app config template.
This commit is contained in:
@@ -189,6 +189,8 @@ namespace AdvancedForwarding
|
||||
if (!group.TryGetForwarderRecords(qname, out IReadOnlyList<DnsForwarderRecordData> forwarderRecords))
|
||||
return Task.FromResult<DnsDatagram>(null);
|
||||
|
||||
request.SetShadowEDnsClientSubnetOption(network, true);
|
||||
|
||||
DnsResourceRecord[] authority = new DnsResourceRecord[forwarderRecords.Count];
|
||||
|
||||
for (int i = 0; i < forwarderRecords.Count; i++)
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
"cloudflare-google"
|
||||
],
|
||||
"domains": [
|
||||
"example.net"
|
||||
"*"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user