mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-03 06:22:56 +03:00
all: sync with master
This commit is contained in:
parent
fbc0d981ba
commit
6f7bfd6c9c
93 changed files with 2828 additions and 1270 deletions
internal/home
|
@ -144,10 +144,7 @@ func handleStatus(w http.ResponseWriter, r *http.Request) {
|
|||
// Make sure that we don't send negative numbers to the frontend,
|
||||
// since enough time might have passed to make the difference less
|
||||
// than zero.
|
||||
protectionDisabledDuration = max(
|
||||
0,
|
||||
time.Until(*protectionDisabledUntil).Milliseconds(),
|
||||
)
|
||||
protectionDisabledDuration = max(0, time.Until(*protectionDisabledUntil).Milliseconds())
|
||||
}
|
||||
|
||||
resp = statusResponse{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue