Skip to content

Commit

Permalink
fix: fix record zero len
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsang committed Jan 14, 2023
1 parent 89119c4 commit c569614
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ func UpdateDns() {
log.Error("list record failed", zap.Error(err))
return
}
if len(records) == 0 {
log.Error("record not found")
return
}
log.Info("describe domain records", zap.Reflect("records", records))

for _, ddns := range config.Cfg.DDNSs {
if !ddns.Enable {
Expand Down

0 comments on commit c569614

Please sign in to comment.