Skip to content

Commit

Permalink
修复会导致根服务器检查版本时无限循环的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yzy613 committed Apr 18, 2020
1 parent 6f20fcb commit 0c79ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
)

const LocalVersion = "0.1.0"
const LocalVersion = "0.1.1"

func IsDirExistAndCreate(dirPath string) (err error) {
_, err = os.Stat(dirPath)
Expand Down
2 changes: 1 addition & 1 deletion main-code/server/ddns-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
conf.Port = ":10032"
saveMark = true
}
if conf.RootServerAddr == "" {
if conf.RootServerAddr == "" && conf.IsRoot == false {
conf.IsRoot = false
conf.RootServerAddr = "https://yzyweb.cn/ddns"
saveMark = true
Expand Down

0 comments on commit 0c79ca6

Please sign in to comment.