From 150c479d336b14ec695a393453ba15ca722412fb Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 29 Sep 2019 05:33:06 -0400 Subject: [PATCH] Resolve issue with Domain references --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 072cbbc..01bbfdf 100644 --- a/main.go +++ b/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)) } }