Browse Source

Resolve issue with Domain references

master
Tyler 2 years ago
parent
commit
150c479d33
  1. 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…
Cancel
Save