Add files via upload

This commit is contained in:
pocketW
2022-04-27 14:01:18 +10:00
committed by GitHub
commit 05ec5660cf
77 changed files with 23999 additions and 0 deletions

30
panel/defaultConfig.go Normal file
View 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",
}
}