2022-07-30 14:50:33 +08:00
|
|
|
//go:build debug
|
|
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"net/http"
|
|
|
|
|
_ "net/http/pprof"
|
2022-08-09 14:49:17 +08:00
|
|
|
|
|
|
|
|
"github.com/sagernet/sing-box/log"
|
2022-07-30 14:50:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func init() {
|
2022-08-09 14:49:17 +08:00
|
|
|
go func() {
|
|
|
|
|
err := http.ListenAndServe("0.0.0.0:8964", nil)
|
|
|
|
|
if err != nil {
|
|
|
|
|
log.Debug(err)
|
|
|
|
|
}
|
|
|
|
|
}()
|
2022-07-30 14:50:33 +08:00
|
|
|
}
|