improve: 单次登录已在线不进行 ddns

This commit is contained in:
Mmx233
2023-01-14 20:11:34 +08:00
parent d5913d739a
commit 07219c8c67

View File

@@ -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
}