Skip to content

Commit

Permalink
v1.4.2 a: 修复了 Linux 不能正常安装服务的 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
yzy613 committed Sep 1, 2021
1 parent 0c9b34e commit d4ec9e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions cmd/ddns-watchdog-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ func runFlag() (exit bool, err error) {
return
}

// 加载客户端配置
// 不得不放在这个地方,因为有下面的检查版本和安装 / 卸载服务
err = client.Conf.LoadConf()
if err != nil {
return
}

// 检查版本
if *version {
client.Conf.CheckLatestVersion()
exit = true
return
}

// 安装 / 卸载服务
switch {
case *installOption:
Expand All @@ -92,20 +106,6 @@ func runFlag() (exit bool, err error) {
exit = true
return
}

// 加载客户端配置
// 不得不放在这个地方,因为有下面的检查版本
err = client.Conf.LoadConf()
if err != nil {
return
}

// 检查版本
if *version {
client.Conf.CheckLatestVersion()
exit = true
return
}
return
}

Expand Down
2 changes: 1 addition & 1 deletion internal/common/struct.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package common

const (
LocalVersion = "1.4.1"
LocalVersion = "1.4.2"
DefaultAPIUrl = "https://yzyweb.cn/ddns-watchdog"
DefaultIPv6APIUrl = "https://yzyweb.cn/ddns-watchdog6"
ProjectUrl = "https://github.com/yzy613/ddns-watchdog"
Expand Down

0 comments on commit d4ec9e0

Please sign in to comment.