Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'split') #13

Open
dongdongbh opened this issue Feb 24, 2023 · 1 comment
Open

Comments

@dongdongbh
Copy link

dongdongbh commented Feb 24, 2023

I'm covertering client side config using v2ray-tools config2vmess --path config.json

TypeError: Cannot read properties of undefined (reading 'split')
    at createVmessObj (/usr/local/lib/node_modules/v2ray-tools/src/config2vmess.js:50:46)
    at createEncodedUrl (/usr/local/lib/node_modules/v2ray-tools/src/config2vmess.js:78:22)
    at config2vmess (/usr/local/lib/node_modules/v2ray-tools/src/config2vmess.js:90:21)
    at Object.config2VmessHandler [as handler] (/usr/local/lib/node_modules/v2ray-tools/src/cli.js:41:20)
    at Object.runCommand (/usr/local/lib/node_modules/v2ray-tools/node_modules/yargs/lib/command.js:240:40)
    at Object.parseArgs [as _parseArgs] (/usr/local/lib/node_modules/v2ray-tools/node_modules/yargs/yargs.js:1105:41)
    at Object.get [as argv] (/usr/local/lib/node_modules/v2ray-tools/node_modules/yargs/yargs.js:1033:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/v2ray-tools/src/cli.js:77:10)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
false
@tarborlevan
Copy link

I guess adding a "tag" property to the first outbound object would fix the problem
replace ps, add and port with their value
...
outbounds: [{
"tag": "[ps] [add] [port]"
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants