Fix service.go to work with singbox 1.8.2
Drop deprecated feautre (Clash API: cache_file and store_selected) Add feature (Cache File: path) Add new idle_timeout field for URLTest outbound Refactor outbound.go Add feature to omit TLSTricks and Fragment on VLESS Reality configs.
This commit is contained in:
@@ -36,8 +36,6 @@ func NewService(options option.Options) (*libbox.BoxService, error) {
|
||||
ctx = filemanager.WithDefault(ctx, sWorkingPath, sTempPath, sUserID, sGroupID)
|
||||
urlTestHistoryStorage := urltest.NewHistoryStorage()
|
||||
ctx = service.ContextWithPtr(ctx, urlTestHistoryStorage)
|
||||
pauseManager := pause.WithDefaultManager(ctx)
|
||||
// ctx = pause.ContextWithManager(ctx, pauseManager)
|
||||
instance, err := B.New(B.Options{
|
||||
Context: ctx,
|
||||
Options: options,
|
||||
@@ -51,7 +49,7 @@ func NewService(options option.Options) (*libbox.BoxService, error) {
|
||||
ctx,
|
||||
cancel,
|
||||
instance,
|
||||
pauseManager,
|
||||
service.FromContext[pause.Manager](ctx),
|
||||
urlTestHistoryStorage,
|
||||
)
|
||||
return &service, nil
|
||||
|
||||
Reference in New Issue
Block a user