Skip to content

Commit c569614

Browse files
committed
fix: fix record zero len
1 parent 89119c4 commit c569614

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/service/service.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ func UpdateDns() {
2626
log.Error("list record failed", zap.Error(err))
2727
return
2828
}
29+
if len(records) == 0 {
30+
log.Error("record not found")
31+
return
32+
}
33+
log.Info("describe domain records", zap.Reflect("records", records))
2934

3035
for _, ddns := range config.Cfg.DDNSs {
3136
if !ddns.Enable {

0 commit comments

Comments
 (0)