Resolve issue with Domain references
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
150e238c05
commit
150c479d33
4
main.go
4
main.go
|
@ -193,7 +193,7 @@ func updateRecord(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
|||
return
|
||||
}
|
||||
|
||||
c.Publish("godns:update_record", []byte(req.Domain))
|
||||
c.Publish("godns:update_record", []byte(req.Name))
|
||||
|
||||
json.NewEncoder(w).Encode(&response{Success: true})
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ func removeRecord(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
|||
return
|
||||
}
|
||||
|
||||
c.Publish("godns:remove_record", []byte(req.Domain))
|
||||
c.Publish("godns:remove_record", []byte(req.Name))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue