]> 127.0.0.1 Git - front/.git/commitdiff
1 v0.1.20250319120507 v0.1.20250319120546
authorqydysky <qydysky@foxmail.com>
Wed, 19 Mar 2025 12:04:06 +0000 (20:04 +0800)
committerqydysky <qydysky@foxmail.com>
Wed, 19 Mar 2025 12:04:06 +0000 (20:04 +0800)
config.go

index 99e51dc2e1e00b5b6f38b43edbc7b653c983b80d..52ce51533fff2a45076beb8645f564b7c4ba1f13 100755 (executable)
--- a/config.go
+++ b/config.go
@@ -142,6 +142,7 @@ func (t *Config) startServer(ctx context.Context, logger Logger, conf *http.Serv
                                f.Delete()
                        }
                        f.Write([]byte(strconv.Itoa(int(syncWeb.FD))), false)
+                       defer f.Delete()
                        shutdown = syncWeb.Shutdown
                        return
                } else {