config.json
{
"inbounds": [
{
"name": "socks",
"protocol": "socks",
"address": "[::]:1681"
},
{
"name": "http",
"protocol": "http",
"address": "[::]:1682"
}
],
"outbounds": [
{
"name": "default",
"hint": "fakeip,w-md5",
"device": "en0",
"dns": "udp://8.8.8.8:53?ecs=1.2.4.8"
}
]
}
Note that the default outbound does not contain https hint. So that curl -x socks5h://[::1]:1681 http://httpforever.com will be in plaintext.
But when using HTTP proxy,
curl -x http://[::1]:1682 http://httpforever.com
It always returns an HTTPS redirect.
config.json
{ "inbounds": [ { "name": "socks", "protocol": "socks", "address": "[::]:1681" }, { "name": "http", "protocol": "http", "address": "[::]:1682" } ], "outbounds": [ { "name": "default", "hint": "fakeip,w-md5", "device": "en0", "dns": "udp://8.8.8.8:53?ecs=1.2.4.8" } ] }Note that the default outbound does not contain
httpshint. So thatcurl -x socks5h://[::1]:1681 http://httpforever.comwill be in plaintext.But when using HTTP proxy,
It always returns an HTTPS redirect.