mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
feat: ntp service
This commit is contained in:
12
conf/sing.go
12
conf/sing.go
@@ -2,6 +2,7 @@ package conf
|
||||
|
||||
type SingConfig struct {
|
||||
LogConfig SingLogConfig `json:"Log"`
|
||||
NtpConfig SingNtpConfig `json:"NTP"`
|
||||
OriginalPath string `json:"OriginalPath"`
|
||||
}
|
||||
|
||||
@@ -18,6 +19,11 @@ func NewSingConfig() *SingConfig {
|
||||
Level: "error",
|
||||
Timestamp: true,
|
||||
},
|
||||
NtpConfig: SingNtpConfig{
|
||||
Enable: false,
|
||||
Server: "time.apple.com",
|
||||
ServerPort: 0,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +35,12 @@ type SingOptions struct {
|
||||
FallBackConfigs *FallBackConfigForSing `json:"FallBackConfigs"`
|
||||
}
|
||||
|
||||
type SingNtpConfig struct {
|
||||
Enable bool `json:"Enable"`
|
||||
Server string `json:"Server"`
|
||||
ServerPort uint16 `json:"ServerPort"`
|
||||
}
|
||||
|
||||
type FallBackConfigForSing struct {
|
||||
// sing-box
|
||||
FallBack FallBack `json:"FallBack"`
|
||||
|
||||
Reference in New Issue
Block a user