mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-06-07 21:09:53 +00:00
31 lines
577 B
Go
31 lines
577 B
Go
package panel
|
|
|
|
import "github.com/XrayR-project/XrayR/service/controller"
|
|
|
|
func getDefaultLogConfig() *LogConfig {
|
|
return &LogConfig{
|
|
Level: "none",
|
|
AccessPath: "",
|
|
ErrorPath: "",
|
|
}
|
|
}
|
|
|
|
func getDefaultConnectionConfig() *ConnectionConfig {
|
|
return &ConnectionConfig{
|
|
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",
|
|
}
|
|
}
|