Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

Add http+socks mixed inbound protocol

Open monsoon235 opened this issue 3 years ago • 2 comments

添加 http+socks 混合入站协议,让 http 和 socks 服务开在一个端口

配置文件中 protocolmixedsettings 按照以下格式

"settings": {
                "accounts": [  // 可选,http+socks 的密码,默认为无密码
                    {
                        "user": "user",
                        "pass": "pass"
                    }
                ],
                "timeout": 5,  // 可选 timeout,默认 0
                "userLevel": 10, // 可选 user level,默认 0
                "socksUdp": true, // 可选 socks 的 UDP 支持,默认 false
                "socksIp": "1.2.3.4", // 可选 socks 的 IP 设置,默认 127.0.0.1
                "httpAllowTransparent": true // 可选 http 的 AllowTransparent 设置,默认 false
}

已经过我本地实际使用测试,未发现问题

monsoon235 avatar Feb 27 '21 16:02 monsoon235

重复 #279

AkinoKaede avatar Feb 27 '21 16:02 AkinoKaede

这个的确和 #239 重复了,但我们应该可以把这两个 PR 合到一起

RPRX avatar Mar 05 '21 09:03 RPRX