Giter Site home page Giter Site logo

Comments (1)

Fangliding avatar Fangliding commented on June 24, 2024

协议内部有关的字段要放在 "settings" 里 而不是直接放在单个入站里

        {
            "tag": "proxy1",
            "protocol": "wireguard",
            "settings": {          // 以下均为wireguard出站的设置
                "secretKey": "8GK9bioGPYkdL0ObYmQqe2iMsffKV9D9C7t9tP2heEU=",
                "address": [
                    "10.9.9.7/32"
                ],
                "peers": [
                    {
                        "endpoint": "10.25.25.1:11451",
                        "publicKey": "USRGaQ8uORcj4W42CAiQhiVFMFM4wgHw37wAcmzV2jo=",
                        "preSharedKey": "",
                        "keepAlive": 3,
                        "allowedIPs": [
                            "0.0.0.0/0"
                        ]
                    }
                ],
                "reserved": [
                    0,
                    0,
                    0
                ],
                "mtu": 1420, // optional, default 1420
                "workers": 1, // optional, default runtime.NumCPU()
                "domainStrategy": "ForceIP"
              }
        }

这里有一个有效的范例出站(使用cloudflare warp) 以供参考

    {
        "protocol": "wireguard",
        "settings": {
          "secretKey": "QC7ExHptW1GIS7AD8pZY5Z3O31nA4c1VNvyHXsnCXFI=",
          "address": [
            "172.16.0.2/32"
          ],
          "peers": [
            {
              "publicKey": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
              "allowedIPs": [
                "0.0.0.0/0"
              ],
              "endpoint": "engage.cloudflareclient.com:2408"
            }
          ],
          "reserved": [43, 77, 229],
          "mtu": 1280
        },
        "tag": "proxy1"
      }

from xray-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.