[subJson] add mux and direct

This commit is contained in:
Alireza Ahmadi
2024-03-12 12:24:01 +01:00
parent dc332b09fa
commit b22d1e082a
8 changed files with 177 additions and 8 deletions

View File

@@ -59,6 +59,8 @@ var defaultValueMap = map[string]string{
"subJsonPath": "/json/",
"subJsonURI": "",
"subJsonFragment": "",
"subJsonMux": "",
"subJsonRules": "",
"warp": "",
}
@@ -403,6 +405,14 @@ func (s *SettingService) GetSubJsonFragment() (string, error) {
return s.getString("subJsonFragment")
}
func (s *SettingService) GetSubJsonMux() (string, error) {
return s.getString("subJsonMux")
}
func (s *SettingService) GetSubJsonRules() (string, error) {
return s.getString("subJsonRules")
}
func (s *SettingService) GetWarp() (string, error) {
return s.getString("warp")
}