fix(acs): connection request update when device changes ip and similars

This commit is contained in:
leandrofars 2024-10-30 13:38:32 -03:00
parent df885f63e0
commit 6fe92fcc85

View File

@ -80,6 +80,8 @@ func (h *Handler) CwmpHandler(w http.ResponseWriter, r *http.Request) {
h.pub(NATS_CWMP_SUBJECT_PREFIX+sn+".info", tmp)
}
cpe.ConnectionRequestURL = Inform.GetConnectionRequest() // Update connection request URL, in case the CPE changed IP
log.Printf("Received an Inform from device %s withEventCodes %s", addr, Inform.GetEvents())
expiration := time.Now().AddDate(0, 0, 1)