mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
update sing-box support
This commit is contained in:
@@ -39,8 +39,14 @@ func init() {
|
||||
vCore.RegisterCore("sing", New)
|
||||
}
|
||||
|
||||
func New(_ *conf.CoreConfig) (vCore.Core, error) {
|
||||
func New(c *conf.CoreConfig) (vCore.Core, error) {
|
||||
options := option.Options{}
|
||||
options.Log = &option.LogOptions{
|
||||
Disabled: c.SingConfig.LogConfig.Disabled,
|
||||
Level: c.SingConfig.LogConfig.Level,
|
||||
Timestamp: c.SingConfig.LogConfig.Timestamp,
|
||||
Output: c.SingConfig.LogConfig.Output,
|
||||
}
|
||||
ctx := context.Background()
|
||||
createdAt := time.Now()
|
||||
experimentalOptions := common.PtrValueOrDefault(options.Experimental)
|
||||
|
||||
Reference in New Issue
Block a user