mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
Recognize .jsonc files automatically (#2398)
Closes https://github.com/XTLS/Xray-core/issues/2399
This commit is contained in:
parent
ce89b5d7de
commit
017b56adf5
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ func GetFormatByExtension(ext string) string {
|
|||
return "yaml"
|
||||
case "toml":
|
||||
return "toml"
|
||||
case "json":
|
||||
case "json", "jsonc":
|
||||
return "json"
|
||||
default:
|
||||
return ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue