mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-23 02:18:13 -05:00
31 lines
569 B
Go
31 lines
569 B
Go
|
package panel
|
||
|
|
||
|
import "github.com/Yuzuki616/V2bX/service/controller"
|
||
|
|
||
|
func getDefaultLogConfig() *LogConfig {
|
||
|
return &LogConfig{
|
||
|
Level: "none",
|
||
|
AccessPath: "",
|
||
|
ErrorPath: "",
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func getDefaultConnetionConfig() *ConnetionConfig {
|
||
|
return &ConnetionConfig{
|
||
|
Handshake: 4,
|
||
|
ConnIdle: 30,
|
||
|
UplinkOnly: 2,
|
||
|
DownlinkOnly: 4,
|
||
|
BufferSize: 64,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func getDefaultControllerConfig() *controller.Config {
|
||
|
return &controller.Config{
|
||
|
ListenIP: "0.0.0.0",
|
||
|
SendIP: "0.0.0.0",
|
||
|
UpdatePeriodic: 60,
|
||
|
DNSType: "AsIs",
|
||
|
}
|
||
|
}
|