mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-01-13 02:22:48 +01:00
Log when the ECS plugin is enabled
This commit is contained in:
parent
a713e1a517
commit
56acb7b5ab
22
dnscrypt-proxy/example-captive-portals.txt
Normal file
22
dnscrypt-proxy/example-captive-portals.txt
Normal file
@ -0,0 +1,22 @@
|
||||
###########################################
|
||||
# Captive portal test names #
|
||||
###########################################
|
||||
|
||||
# Some operating systems send queries to these names after a network change,
|
||||
# in order to check if connectivity beyond the router is possible without
|
||||
# going through a captive portal.
|
||||
#
|
||||
# This is a list of hard-coded IP addresses that will be returned when queries
|
||||
# for these names are received, even before the operating system an interface
|
||||
# as usable for reaching the Internet.
|
||||
#
|
||||
# Note that IPv6 addresses don't need to be specified within brackets,
|
||||
# as there are no port numbers.
|
||||
|
||||
captive.apple.com 17.253.109.201, 17.253.113.202
|
||||
connectivitycheck.gstatic.com 64.233.162.94, 64.233.164.94, 64.233.165.94, 64.233.177.94, 64.233.185.94, 74.125.132.94, 74.125.136.94, 74.125.20.94, 74.125.21.94, 74.125.28.94
|
||||
connectivitycheck.android.com 64.233.162.100, 64.233.162.101, 64.233.162.102, 64.233.162.113, 64.233.162.138, 64.233.162.139
|
||||
www.msftncsi.com 95.100.252.49, 95.100.252.8, 2.19.98.8, 2.19.98.59, 88.221.113.88, 88.221.113.43, 88.221.113.49, 88.221.113.75
|
||||
dns.msftncsi.com 131.107.255.255, fd3e:4f5a:5b81::1
|
||||
www.msftconnecttest.com 13.107.4.52
|
||||
ipv4only.arpa 192.0.0.170, 192.0.0.171
|
@ -4,6 +4,7 @@ import (
|
||||
"math/rand"
|
||||
"net"
|
||||
|
||||
"github.com/jedisct1/dlog"
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
@ -21,6 +22,7 @@ func (plugin *PluginECS) Description() string {
|
||||
|
||||
func (plugin *PluginECS) Init(proxy *Proxy) error {
|
||||
plugin.nets = proxy.ednsClientSubnets
|
||||
dlog.Notice("ECS plugin enabled")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user