update deps

This commit is contained in:
yuzuki999
2023-09-14 02:25:33 +08:00
parent da1870cc88
commit db5059106c
4 changed files with 78 additions and 69 deletions

View File

@@ -22,6 +22,10 @@ type HookServer struct {
counter sync.Map
}
func (h *HookServer) ModeList() []string {
return nil
}
func NewHookServer(logger log.Logger) *HookServer {
return &HookServer{
logger: logger,

View File

@@ -20,6 +20,7 @@ import (
"github.com/sagernet/sing/common"
E "github.com/sagernet/sing/common/exceptions"
F "github.com/sagernet/sing/common/format"
"github.com/sagernet/sing/service"
"github.com/sagernet/sing/service/pause"
)
@@ -68,6 +69,7 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
},
}
ctx := context.Background()
ctx = service.ContextWithDefaultRegistry(ctx)
ctx = pause.ContextWithDefaultManager(ctx)
createdAt := time.Now()
experimentalOptions := common.PtrValueOrDefault(options.Experimental)