summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-07 04:41:14 -0600
committerJeff Carr <[email protected]>2025-02-07 04:41:14 -0600
commitf6b9e6d86a07cbf02b5012e49b87513855846041 (patch)
treec7f5d7644136752c82e39b41738d294d49553c2e
parent66dc8d1f615af0ceb7ac285b707f17987a5fef46 (diff)
-rw-r--r--http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.go b/http.go
index f97f39c..8be1363 100644
--- a/http.go
+++ b/http.go
@@ -62,7 +62,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
log.Info("going to toggle flag:", flag)
switch flag {
case "PING":
- if PING.Bool() {
+ if PING.Enabled() {
log.Log(NOW, "toogle PING false")
PING.SetBool(false)
} else {