-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_example.json5
More file actions
executable file
·37 lines (32 loc) · 1.41 KB
/
config_example.json5
File metadata and controls
executable file
·37 lines (32 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"proxies": [
{
// layer+layer+...+protocol
// layer supported: tls
// protocol supported: http, socks4, socks5
"protocol": "tls+tls+http", // This is required.
"server": "114.51.48.10:1919", // This is required.
"user": "foo", // When this is set, you can skip entering authorization credential.
"password": "bar",
}
],
"doh": {
"endpoint": "https://cloudflare-dns.com/dns-query", // This is required.
// When this is set, this app requests the proxy server to connect its host.
// But SNI and HTTP Host header are set to "endpoint"'s host name.
// This is useful when the proxy server blocking to access to DoH server.
// If "endpoint" is set cloudflare-dns.com, you have to set this the host name proxied by Cloudflare.
// ex. hakurei.win, gazeta-pravda.ru, discord.com, misskey.io,
"fake_host": "hakurei.win",
},
// 0: Disable fragmentation
// 1: Enable fragmentation for DoH requests only
// 2: Enable fragmentation for all requests
"fragment": 2, // Default: 2
"http_listen": ["127.0.0.1:8080", "[::1]:8080"],
"dns_listen": ["127.0.0.1:8081", "[::1]:8081"],
"tproxy_listen": {
"listen": ["127.0.0.1:8081", "[::1]:8081"], // This is required.
"redir_type": "redirect", // redirect, tproxy, pf, ipfw
},
}