optimize: 优化自动更新相关代码

This commit is contained in:
Akkia
2022-04-12 17:43:57 +08:00
committed by Akkia
parent c65028188c
commit e1ca2d5a1c
4 changed files with 26 additions and 20 deletions

View File

@@ -51,6 +51,7 @@ var (
httpClientV6 = utils.NewSingleStackHTTPClient(time.Second*20, time.Second*5, time.Second*10, true)
)
// UpdateIP 每30分钟汇报一次IP地址信息
func UpdateIP() {
for {
ipv4 := fetchGeoIP(geoIPApiList, false)