Comments (5)
According to
https://github.com/2dust/v2rayN/wiki/%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E6%A0%BC%E5%BC%8F%E8%AF%B4%E6%98%8E(ver-2)
, that URI does not meet specifications
from v2gen.
But as I have told you, you can try it youself:
This one will work with v2ray:
{
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"mux": {
"enabled": true
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "www.kernels.bid",
"port": 443,
"users": [
{
"alterId": 0,
"id": "4f822b71-10a1-9e37-84c8-780cc3cfd2c6"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
// "wsSettings": {
// "path": "{{path}}",
// "headers": {
// "Host": "/ws"
// }
// }
"wsSettings": {
"path": "/ws"
}
}
}
]
}
This one will not work:
{
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"mux": {
"enabled": true
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "www.kernels.bid",
"port": 443,
"users": [
{
"alterId": 0,
"id": "4f822b71-10a1-9e37-84c8-780cc3cfd2c6"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"wsSettings": {
"path": "{{path}}",
"headers": {
"Host": "/ws"
}
}
// "wsSettings": {
// "path": "/ws"
// }
}
}
]
}
from v2gen.
Though I can start v2ray with the former config, but when do the data transfering, it will give the following errors:
$ ./v2ray -cong ~/Downloads/config.json
V2Ray 4.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom
A unified platform for anti-censorship.
2019/09/14 17:15:11 [Warning] v2ray.com/core: V2Ray 4.20.0 started
2019/09/14 17:15:29 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.kernels.bid/{{path}}): 404 Not Found > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed
from v2gen.
vmess://eyJwcyI6IltmcmVlLXNzLnNpdGVdd3d3Lmtlcm5lbHMuYmlkIiwiYWRkIjoid3d3Lmtlcm5lbHMuYmlkIiwicG9ydCI6IjQ0MyIsImlkIjoiNGY4MjJiNzEtMTBhMS05ZTM3LTg0YzgtNzgwY2MzY2ZkMmM2IiwiYWlkIjoiMCIsIm5ldCI6IndzIiwidHlwZSI6Im5vbmUiLCJob3N0IjoiL3dzIiwidGxzIjoidGxzIn0=
does not meet specifications.
If I modify the code, other correct URIs will not work to it.
If you like, the code is licensed under MIT LICENSE, you can adapt it by your own freely.
from v2gen.
Though I can start v2ray with the former config, but when do the data transfering, it will give the following errors:
$ ./v2ray -cong ~/Downloads/config.json V2Ray 4.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom A unified platform for anti-censorship. 2019/09/14 17:15:11 [Warning] v2ray.com/core: V2Ray 4.20.0 started 2019/09/14 17:15:29 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.kernels.bid/{{path}}): 404 Not Found > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed
Certainly, that URI does not meet specifications.
after decoding it, it is
{"ps":"[free-ss.site]www.kernels.bid","add":"www.kernels.bid","port":"443","id":"4f822b71-10a1-9e37-84c8-780cc3cfd2c6","aid":"0","net":"ws","type":"none","host":"/ws","tls":"tls"}
However, "host"
should be like example.ltd
, "path"
should be like /ws
from v2gen.
Related Issues (20)
- Add feature to automatically generate v2ray config file by the lowest real delay node
- Can not run with alpine HOT 1
- How to use -tpl? HOT 1
- Please use the latest version
- Use "vX.X.X" instead of "VX.X.X"
- Separate different modules HOT 1
- Auto release hooked by v2ray-core HOT 1
- Can't run the program HOT 3
- Runing `v2gen -u "https://api.xinjie.eu.org/link/89j4g4oET" -o "-"` leads to error HOT 4
- 输出端口更改无效 HOT 2
- 请问如何选择多个服务器地址 HOT 1
- ./v2gen_amd64_linux --init or ./v2gen_amd64_linux -init 报错 HOT 8
- 只能用于vmess解析吗 是否适用ss、ssr、vles HOT 1
- How to check what the errors are?
- 能不能把所有的节点输出成outbounds.json
- How to generate config.json file from `VMess` link?
- 不知改该如何启动代理,只能获得配置 HOT 2
- 有点问题,但是具体是啥问题我也不清楚,写正文里吧 HOT 1
- 能保留多个 节点吗? HOT 2
- TODO: multi thread speedtest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v2gen.