Skip to content

Commit

Permalink
filtering: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Mar 17, 2023
1 parent 868f5d1 commit d2870a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/filtering/safesearchhttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ func (d *DNSFilter) handleSafeSearchSettings(w http.ResponseWriter, r *http.Requ
}

func() {
defer d.Config.ConfigModified()

d.confLock.Lock()
defer d.confLock.Unlock()

d.Config.SafeSearchConf = *req
d.Config.ConfigModified()
}()

aghhttp.OK(w)
Expand Down

0 comments on commit d2870a1

Please sign in to comment.