mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-19 02:53:36 +03:00
20 lines
237 B
Go
20 lines
237 B
Go
//go:build debug
|
|
|
|
package main
|
|
|
|
import (
|
|
"net/http"
|
|
_ "net/http/pprof"
|
|
|
|
"github.com/sagernet/sing-box/log"
|
|
)
|
|
|
|
func init() {
|
|
go func() {
|
|
err := http.ListenAndServe("0.0.0.0:8964", nil)
|
|
if err != nil {
|
|
log.Debug(err)
|
|
}
|
|
}()
|
|
}
|