Resolve issue with Domain references
This commit is contained in:
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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user