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:
22
conf/sing.go
Normal file
22
conf/sing.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package conf
|
||||
|
||||
type SingConfig struct {
|
||||
LogConfig SingLogConfig `yaml:"LogConfig"`
|
||||
OriginalPath string `yaml:"OriginalPath"`
|
||||
}
|
||||
|
||||
type SingLogConfig struct {
|
||||
Disabled bool `yaml:"Disable"`
|
||||
Level string `yaml:"Level"`
|
||||
Output string `yaml:"Output"`
|
||||
Timestamp bool `yaml:"Timestamp"`
|
||||
}
|
||||
|
||||
func NewSingConfig() *SingConfig {
|
||||
return &SingConfig{
|
||||
LogConfig: SingLogConfig{
|
||||
Level: "error",
|
||||
Timestamp: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user