Replies: 1 comment 2 replies
-
|
In my mind, V2RayN use v4 config format. You ask V2Ray core to use v5 config format(actually, the same config). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello to everybody! Trying to create v2ray client (Windows) - so I generated json-file and try to run it:
PS C:\Programs\v2ray> .\v2ray.exe run --config C:\Programs\v2ray\config.json --format jsonv5
V2Ray 5.41.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.24.2 windows/amd64)
A unified platform for anti-censorship.
Failed to start: main/commands: failed to load config: [C:\Programs\v2ray\config.json] > infra/conf/v5cfg: unable to load json > json: unknown field "routeOnly"
Config is OK - it's working using v2rayN but I need to run just using PowerShell. This is config:
{
"log": {
"loglevel": "none"
},
"dns": {
"hosts": {
"dns.google": [
"8.8.8.8"
],
"proxy.example.com": [
"127.0.0.1"
]
},
"servers": [
"1.1.1.1",
"8.8.8.8",
"https://dns.google/dns-query",
{
"address": "77.88.8.8",
"port": null,
"domains": [
"lndn*******"
],
"skipFallback": true,
"expectedIPs": null,
"unexpectedIPs": null,
"clientIp": null,
"queryStrategy": null,
"timeoutMs": null,
"disableCache": null,
"finalQuery": null,
"tag": null
}
]
},
"inbounds": [
{
"tag": "socks",
"port": 10808,
"listen": "0.0.0.0",
"protocol": "mixed",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "api",
"port": 10812,
"listen": "127.0.0.1",
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "lndn*******",
"port": 443,
"users": [
{
"id": "f3656-9-46eb-e-97faaab8",
"email": "[email protected]",
"security": "auto",
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"serverName": "google.com",
"fingerprint": "chrome",
"show": false,
"publicKey": "LAkrDf2Ho9tw7dy1aI53D1***s3Q",
"shortId": "720ce545f84db02f",
"spiderX": "/",
"mldsa65Verify": ""
}
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom"
},
{
"tag": "block",
"protocol": "blackhole"
}
],
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
},
{
"type": "field",
"port": "443",
"network": "udp",
"outboundTag": "block"
},
{
"type": "field",
"outboundTag": "proxy",
"domain": [
"geosite:google"
]
},
{
"type": "field",
"outboundTag": "direct",
"ip": [
"geoip:private"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:private"
]
},
{
"type": "field",
"outboundTag": "direct",
"ip": [
"223.5.5.5",
"223.6.6.6",
"2400:3200::1",
"2400:3200:baba::1",
"119.29.29.29",
"1.12.12.12",
"120.53.53.53",
"2402:4e00::",
"2402:4e00:1::",
"180.76.76.76",
"2400:da00::6666",
"114.114.114.114",
"114.114.115.115",
"114.114.114.119",
"114.114.115.119",
"114.114.114.110",
"114.114.115.110",
"180.184.1.1",
"180.184.2.2",
"101.226.4.6",
"218.30.118.6",
"123.125.81.6",
"140.207.198.6",
"1.2.4.8",
"210.2.4.8",
"52.80.66.66",
"117.50.22.22",
"2400:7fc0:849e:200::4",
"2404:c2c0:85d8:901::4",
"117.50.10.10",
"52.80.52.52",
"2400:7fc0:849e:200::8",
"2404:c2c0:85d8:901::8",
"117.50.60.30",
"52.80.60.30"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"domain:alidns.com",
"domain:doh.pub",
"domain:dot.pub",
"domain:360.cn",
"domain:onedns.net"
]
},
{
"type": "field",
"outboundTag": "direct",
"ip": [
"geoip:cn"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:cn"
]
}
]
},
"metrics": {
"tag": "api"
},
"policy": {
"system": {
"statsOutboundUplink": true,
"statsOutboundDownlink": true
}
},
"stats": {}
}
Please help.
Beta Was this translation helpful? Give feedback.
All reactions