Skip to content

Commit

Permalink
fix(cf): add name check when list record
Browse files Browse the repository at this point in the history
  • Loading branch information
M4n5ter committed May 10, 2023
1 parent 5e3ac56 commit 7989af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare/cf.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func DDNS(publicIp net.Addr, conf Config) {
}, &ListResponse{}).(*ListResponse)
if listResp.Success {
for _, record := range listResp.Result {
if record.Content == publicIp.String() {
if record.Name == conf.Name && record.Content == publicIp.String() {
needUpdate = false
needCreate = false
conf.RecordId = record.Id
Expand Down

0 comments on commit 7989af9

Please sign in to comment.