From d2fa7b94a6d469e105313fb4d2ea71dd3d8e2d9d Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 10 Dec 2023 11:13:36 +0800 Subject: [PATCH] 1 --- config.go | 2 +- main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 559c195..8e3c390 100644 --- a/config.go +++ b/config.go @@ -116,7 +116,7 @@ func (t *Back) IsLive() bool { func (t *Back) Disable() { if t.ErrBanSec == 0 { - return + t.ErrBanSec = 1 } t.lock.Lock() defer t.lock.Unlock() diff --git a/main.go b/main.go index 9209545..5d72b6c 100644 --- a/main.go +++ b/main.go @@ -244,6 +244,7 @@ func applyConfig(ctx context.Context, configS *Config, routeP *pweb.WebPath, log Value: backI.Sign, MaxAge: splicing, Path: path, + Domain: r.Host, }).String()) } -- 2.39.2