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

[疑问]"proxySettings":{"tag":""} 与 "sockopt":{"dialerProxy":""} 的区别?

Open enterusernamecontinue opened this issue 3 years ago • 0 comments

如题,平时都是使用前者来实现套娃。

但是,前几天看到发布页里《通过 Cloudflare Warp 增强代理安全性》中描述的“客户端使用 warp 链式代理”配置:

{
    "outbounds": [
        {
            ... ...
            "tag": "proxy1"
        },
        {
            "protocol": "wireguard",
            "settings": {
                "secretKey": "我的私钥",
                "peers": [
                    {
                        "publicKey": "Warp公钥",
                        "endpoint": "engage.cloudflareclient.com:2408"
                    }
                ]
            },
            "streamSettings": {
                "sockopt": {
                    "dialerProxy": "proxy1"
                }
            },
            "tag": "proxy2"
        }
    ]
}

想知道使用 "sockopt":{"dialerProxy":""} 与 "proxySettings":{"tag":""} 的原理区别,望解答,感谢。

{
    "outbounds": [
        {
            ... ...
            "tag": "proxy1"
        },
        {
            "protocol": "wireguard",
            "settings": {
                "secretKey": "我的私钥",
                "peers": [
                    {
                        "publicKey": "Warp公钥",
                        "endpoint": "engage.cloudflareclient.com:2408"
                    }
                ]
            },
            "proxySettings": {
                "tag": "proxy1",
                "transportLayer": true
            },
            "tag": "proxy2"
        }
    ]
}

enterusernamecontinue avatar Dec 01 '22 03:12 enterusernamecontinue