| 本帖最後由 角色 於 2019-2-27 18:51 編輯 
 VN2的config.json跟《V2Ray使用教程——基础概念2》一样,我们这里只展示VN1的config.json.
 
 VN1 config.json contains:
 .複製代碼{
  "inbounds": [
    {
      "port": 1080,  
      "protocol": "http"
    },
    {
      "port": 1081,  
      "protocol": "socks"
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
           "address": "VN2-node-IP or hostname",
            "port": 10086,
            "users": [
              {"id": "UUID"}
            ]
          }
        ]
      }
    },
    {
      "protocol": "freedom",
      "tag": "direct",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
       "type": "field",
        "domain": [ "geosite:cn"],
        "outboundTag": "direct"
      },
      {
        "type": "field",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ],
        "outboundTag": "direct"
      }
    ]
  }  
}
 要更改的部分有
 複製代碼           "address": "VN2-node-IP or hostname",
           "port": 10086   
           {"id": "UUID"}
 |