mirror of
https://github.com/XrayR-project/XrayR.git
synced 2025-08-18 23:31:47 +00:00
Add files via upload
This commit is contained in:
30
panel/defaultConfig.go
Normal file
30
panel/defaultConfig.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package panel
|
||||
|
||||
import "github.com/XrayR-project/XrayR/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",
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user