summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {