From e60b718c573c804c32375b78aa3cfde737253e5c Mon Sep 17 00:00:00 2001 From: madwolfcrazy Date: Sat, 27 Nov 2021 16:36:50 +0800 Subject: [PATCH] fix the problem of func ListenAndServeTLS have not call func BeforeBegin. --- endless.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/endless.go b/endless.go index 9604a20..324717d 100644 --- a/endless.go +++ b/endless.go @@ -15,7 +15,6 @@ import ( "sync" "syscall" "time" - // "github.com/fvbock/uds-go/introspect" ) @@ -275,7 +274,7 @@ func (srv *endlessServer) ListenAndServeTLS(certFile, keyFile string) (err error syscall.Kill(syscall.Getppid(), syscall.SIGTERM) } - log.Println(syscall.Getpid(), srv.Addr) + srv.BeforeBegin(srv.Addr) return srv.Serve() }