Improve cmd

This commit is contained in:
世界
2022-08-09 14:49:17 +08:00
parent ecaddd897e
commit e05ee55545
4 changed files with 11 additions and 1 deletions

View File

@@ -5,8 +5,15 @@ package main
import (
"net/http"
_ "net/http/pprof"
"github.com/sagernet/sing-box/log"
)
func init() {
go http.ListenAndServe("0.0.0.0:8964", nil)
go func() {
err := http.ListenAndServe("0.0.0.0:8964", nil)
if err != nil {
log.Debug(err)
}
}()
}