-
-
Notifications
You must be signed in to change notification settings - Fork 1
Detailed explanation of client configuration files
originalFactor edited this page Nov 21, 2023
·
2 revisions
Parser: json
Default read file name: Cconfig.json
Default encoding: UTF-8
Is it necessary: Yes
Complete configuration example:
{
"requestURL": "where.your.static/file/is/located",
"ip": "1.2.3.4",
"ips": [
"2.3.4.5",
"5.6.7.8"
],
"indexPath": "client.json",
"preferIPType": "A",
"dns": "223.5.5.5",
"useDNS": false,
"deleteFileNotFoundInServer": true,
"deleteUnMatched": true
}Definition:
| Field | Definition | Type | Valid value | Default value | Required | Remarks |
|---|---|---|---|---|---|---|
requestURL |
HTTP address of the server | String | Any URL | None | Yes | Supports auto-completion, uses http protocol by default, and automatically adds / at the end |
ip |
IP resolved to the domain name in requestURL
|
String | Any IP address | None | No | Support v6, have a higher priority than the ips field, activate the preview function |
ips |
Same as ip, randomly select a |
string list | multiple IP addresses | none | no | priority higher than the preferIPType field |
indexPath |
The file name of the index file | String | Any | client.json |
No | Restricted to the server |
preferIPType |
DNS resolution target address type | String |
A(IPv4) or AAAA(IPv6) |
A |
No | The priority is higher than the useDNS field, when using WGet extension, it is not Activate preview function |
dns |
DNS server used for DNS resolution | String | DNS server domain name/IP available for DoH | 223.5.5.5 |
No | None |
useDNS |
Whether to use built-in DoH parsing | Boolean |
true (enabled) or false (disabled) |
false |
no | Preview function |
deleteFileNotFoundInServer |
Whether to delete files not found in the server index | Boolean |
true (enabled) or false (disabled) |
true |
No | Anti-cheating |
deleteUnMatched |
Whether to delete unmatched files | Boolean |
true (enabled) or false (disabled) |
true |
No | Generally enabled, anti-cheating + update allowed + anti-bug, if disabled, deleteFileNotFoundInServer will also be disabled |