mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
update ddns on server update (#1050)
This commit is contained in:
1 parent
0c22af4f83
commit
b3377127a4
7 files changed
+69
-48
No files matched your search
+3
-1
@@ -18,7 +18,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
DNSServers = []string{"8.8.8.8:53", "8.8.4.4:53", "1.1.1.1:53", "1.0.0.1:53"}
|
||||
DNSServersV4 = []string{"8.8.8.8:53", "8.8.4.4:53", "1.1.1.1:53", "1.0.0.1:53"}
|
||||
DNSServersV6 = []string{"[2001:4860:4860::8888]:53", "[2001:4860:4860::8844]:53", "[2606:4700:4700::1111]:53", "[2606:4700:4700::1001]:53"}
|
||||
DNSServers = append(DNSServersV4, DNSServersV6...)
|
||||
|
||||
ipv4Re = regexp.MustCompile(`(\d*\.).*(\.\d*)`)
|
||||
ipv6Re = regexp.MustCompile(`(\w*:\w*:).*(:\w*:\w*)`)
|
||||
|
||||
Reference in new issue
Block a user