From 07219c8c6724f0df1e494571b85ab993240e9af1 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Sat, 14 Jan 2023 20:11:34 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E5=8D=95=E6=AC=A1=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=B7=B2=E5=9C=A8=E7=BA=BF=E4=B8=8D=E8=BF=9B=E8=A1=8C=20ddns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/login.go b/controllers/login.go index 724737a..4f1497d 100644 --- a/controllers/login.go +++ b/controllers/login.go @@ -51,7 +51,7 @@ func Login(localAddr net.Addr, debugOutput bool) error { if online { output("已登录~") - if global.Config.Settings.DDNS.Enable && ipLast != ip { + if global.Config.Settings.DDNS.Enable && global.Config.Settings.Guardian.Enable && ipLast != ip { if ddns(ip, httpClient) == nil { ipLast = ip }