update ddns on server update (#1050)

This commit is contained in:
UUBulb authored and GitHub committed 2025-03-31 19:41:04 +08:00
1 parent 0c22af4f83
commit b3377127a4
7 files changed
+69 -48

No files matched your search

+3 -1
View File
@@ -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*)`)