Skip to content

Unable to disable HTTPS rewrite in HTTP inbound #93

Description

@Cuthead

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions