]> 127.0.0.1 Git - front/.git/commitdiff
1 v0.1.20231210031356
authorqydysky <qydysky@foxmail.com>
Sun, 10 Dec 2023 03:13:36 +0000 (11:13 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 10 Dec 2023 03:13:36 +0000 (11:13 +0800)
config.go
main.go

index 559c1957a9ce8b1d775f430a18eca450cb55fbf3..8e3c3900a3a043f5a46a1a3ee592d4fb58b626f8 100644 (file)
--- 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 9209545c0ad52aefeb29ea4936fed242205c0832..5d72b6c6d1a09031511b361069d52d76ede0b0a1 100644 (file)
--- 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())
                        }