HTTP 内网穿透

This commit is contained in:
naiba
2024-07-14 19:41:13 +08:00
parent e674ee7177
commit f220134e5b
3 changed files with 71 additions and 6 deletions
+2 -2
View File
@@ -55,9 +55,9 @@ var (
)
// UpdateIP 按设置时间间隔更新IP地址与国家码的缓存
func UpdateIP(logging bool, useIPv6CountryCode bool, period uint32) {
func UpdateIP(useIPv6CountryCode bool, period uint32) {
for {
util.Println(logging, "NEZHA_AGENT>> 正在更新本地缓存IP信息")
util.Println(agentConfig.Debug, "正在更新本地缓存IP信息")
var primaryIP, secondaryIP geoIP
if useIPv6CountryCode {
primaryIP = fetchGeoIP(geoIPApiList, true)