Equim-chan / h2s

:electric_plug: A simple tool that wraps HTTPS proxies into a SOCKS5 proxy.
MIT License
122 stars 19 forks source link

非标准443端口WS+TLS 无法正常使用 #5

Closed 5high closed 5 years ago

5high commented 5 years ago

V2Ray 配置如下 { "inbound": { "port": "1080", "listen": "127.0.0.1", "protocol": "socks", "Settings": { "auth": "noauth", "udp": true } }, "outbound": { "mux": { "enabled": true }, "protocol": "vmess", "settings": { "vnext": [{ "address": "127.0.0.1", "port": 50001, "users": [{ "id": "99b1b300-xxxxxxx48a0", "alterId": 64 }] }] }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "serverName": "xxx.com" }, "wsSettings": { "path": "/ray", "headers": { "Host": "xxx.com" } } } }, "inboundDetour": [{ "domainOverride": ["tls", "http"], "listen": "127.0.0.1", "port": 50001, "protocol": "dokodemo-door", "settings": { "address": "xxx.com", "port": 6443 }, "tag": "bridge" }], "outboundDetour": [{ "protocol": "socks", "settings": { "servers": [{ "address": "127.0.0.1", "port": 1088 }] }, "tag": "h2s" }], "routing": { "settings": { "rules": [{ "type": "field", "inboundTag": ["bridge"], "outboundTag": "h2s" }], "domainStrategy": "IPIfNonMatch" }, "strategy": "rules" } }

H2S 配置如下

{ "bind": "127.0.0.1:1088", "upstreams": [{ "address": "10.10.19.100:9092" }], "timeout": "20s", "retries": 3 }