This commit is contained in:
Simon Zolin
2020-04-30 15:01:14 +03:00
parent 61e071d275
commit 738c7820fa
4 changed files with 66 additions and 4 deletions

View File

@@ -116,7 +116,9 @@ func (s *Server) handleDHCPSetConfig(w http.ResponseWriter, r *http.Request) {
return
}
s6, err := v6Create(v6JSONToServerConf(newconfig.V6))
v6conf := v6JSONToServerConf(newconfig.V6)
v6conf.notify = s.conf.Conf6.notify
s6, err := v6Create(v6conf)
if s6 == nil {
httpError(r, w, http.StatusBadRequest, "Invalid DHCPv6 configuration: %s", err)
return