Open Hylaea opened 1 month ago
Try use xargs
v2ray-core git:(346ca66c) ✗ cat vpoint_vmess_freedom.json|xargs ./v2ray run
V2Ray 5.16.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.21.7 linux/amd64)
A unified platform for anti-censorship.
2024/06/20 21:09:24 Using config from STDIN
2024/06/20 21:09:24 [Warning] V2Ray 5.16.1 started
What version of V2Ray are you using?
5.16.1
What's your scenario of using V2Ray?
Socks and VMess proxy, and Intranet penetration
What problems have you encountered?
A bug encountered when loading configuration text via STDIN. panic: runtime error: invalid memory address or nil pointer dereference
Windows10 Startup script:
type vpoint_vmess_freedom.json | v2ray.exe run
Centos7 Startup script:cat vpoint_vmess_freedom.json | ./v2ray run
Note: Delete config.json first, otherwise will load configuration from config. json instead of STDIN.
What's your expectation?
The program is able to read configuration text correctly from STDIN, because these configuration text are generated dynamically and do not want to be written to the hard disk.
Please attach your configuration here
Server configuration: _The configuration comes from vpoint_vmessfreedom.json
Client configuration: Same as the server configuration.
Please attach error logs here
Server error log: No log file because the program failed to start.
Client error log: No log file because the program failed to start.
Please attach access log here
No log file because the program failed to start.
Other configurations (such as Nginx) and logs here
None
If V2Ray cannot start up, please attach output from
--test
commandIf V2Ray service is abnormal, please attach journal log here
Not a service