From: qydysky Date: Sun, 10 Dec 2023 03:13:36 +0000 (+0800) Subject: 1 X-Git-Tag: v0.1.20231210031356 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=d2fa7b94a6d469e105313fb4d2ea71dd3d8e2d9d;p=front%2F.git 1 --- 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()) }