Skip to content

Commit 664bd9b

Browse files
committed
bug fix #2660
1 parent ceb1217 commit 664bd9b

File tree

1 file changed

+46
-44
lines changed

1 file changed

+46
-44
lines changed

web/service/setting.go

+46-44
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,52 @@ import (
2424
var xrayTemplateConfig string
2525

2626
var defaultValueMap = map[string]string{
27-
"xrayTemplateConfig": xrayTemplateConfig,
28-
"webListen": "",
29-
"webDomain": "",
30-
"webPort": "2053",
31-
"webCertFile": "",
32-
"webKeyFile": "",
33-
"secret": random.Seq(32),
34-
"webBasePath": "/",
35-
"sessionMaxAge": "60",
36-
"pageSize": "50",
37-
"expireDiff": "0",
38-
"trafficDiff": "0",
39-
"remarkModel": "-ieo",
40-
"timeLocation": "Local",
41-
"tgBotEnable": "false",
42-
"tgBotToken": "",
43-
"tgBotProxy": "",
44-
"tgBotAPIServer": "",
45-
"tgBotChatId": "",
46-
"tgRunTime": "@daily",
47-
"tgBotBackup": "false",
48-
"tgBotLoginNotify": "true",
49-
"tgCpu": "80",
50-
"tgLang": "en-US",
51-
"secretEnable": "false",
52-
"subEnable": "false",
53-
"subListen": "",
54-
"subPort": "2096",
55-
"subPath": "/sub/",
56-
"subDomain": "",
57-
"subCertFile": "",
58-
"subKeyFile": "",
59-
"subUpdates": "12",
60-
"subEncrypt": "true",
61-
"subShowInfo": "true",
62-
"subURI": "",
63-
"subJsonPath": "/json/",
64-
"subJsonURI": "",
65-
"subJsonFragment": "",
66-
"subJsonNoises": "",
67-
"subJsonMux": "",
68-
"subJsonRules": "",
69-
"datepicker": "gregorian",
70-
"warp": "",
27+
"xrayTemplateConfig": xrayTemplateConfig,
28+
"webListen": "",
29+
"webDomain": "",
30+
"webPort": "2053",
31+
"webCertFile": "",
32+
"webKeyFile": "",
33+
"secret": random.Seq(32),
34+
"webBasePath": "/",
35+
"sessionMaxAge": "60",
36+
"pageSize": "50",
37+
"expireDiff": "0",
38+
"trafficDiff": "0",
39+
"remarkModel": "-ieo",
40+
"timeLocation": "Local",
41+
"tgBotEnable": "false",
42+
"tgBotToken": "",
43+
"tgBotProxy": "",
44+
"tgBotAPIServer": "",
45+
"tgBotChatId": "",
46+
"tgRunTime": "@daily",
47+
"tgBotBackup": "false",
48+
"tgBotLoginNotify": "true",
49+
"tgCpu": "80",
50+
"tgLang": "en-US",
51+
"secretEnable": "false",
52+
"subEnable": "false",
53+
"subListen": "",
54+
"subPort": "2096",
55+
"subPath": "/sub/",
56+
"subDomain": "",
57+
"subCertFile": "",
58+
"subKeyFile": "",
59+
"subUpdates": "12",
60+
"subEncrypt": "true",
61+
"subShowInfo": "true",
62+
"subURI": "",
63+
"subJsonPath": "/json/",
64+
"subJsonURI": "",
65+
"subJsonFragment": "",
66+
"subJsonNoises": "",
67+
"subJsonMux": "",
68+
"subJsonRules": "",
69+
"datepicker": "gregorian",
70+
"warp": "",
71+
"externalTrafficInformEnable": "false",
72+
"externalTrafficInformURI": "",
7173
}
7274

7375
type SettingService struct{}

0 commit comments

Comments
 (0)