Closed JobberRT closed 9 months ago
self build Xrayr works fine on Linux(same machine that install script failed to start) with the same config file while install script version failed
Right now I have to override the script version of xrayr executable with my self build one, please check and fix this issue
Found the issue.
v0.9.2
is before #534 (cmooit: 911b0c2ff5629ff9af6858fa601eda80b3863022).
In this commit, the url param node_type
of GetNodeInfo
changed from
https://github.com/XrayR-project/XrayR/blob/d9971b2181f36c0cf1cfd83a5a759ccc33db5c2b/api/newV2board/v2board.go#L60
to
https://github.com/XrayR-project/XrayR/blob/561f317e243b56921929a0576d09e6ba61cb52d0/api/newV2board/v2board.go#L69
which means it will use the vless
instead of strings.ToLowerCase("V2ray") // config.yml ApiConfig.NodeType
Found a similiar issue here: #527 , but that issue didn't provide detailed info.
Xrayr Vesion
v0.9.1 and v0.9.2 from install script
Xrayr Config(Only the important part)
Behavior
executable from install script failed to recognize vless type for V2Board. From code we can see if
apiConfig.NodeType
istrue
, then the url paramnode_type
will bevless
, otherwisev2ray
. https://github.com/XrayR-project/XrayR/blob/561f317e243b56921929a0576d09e6ba61cb52d0/api/newV2board/v2board.go#L61-L65Using the config above, Xrayr from install script failed to recognize
vless
and usingv2ray
asnode_type
, screenshot from nginx access log.But cloning the repo and build Xrayr in local(macOS M1), and run with the same config file will have a correct
node_type
and sucessfully get the server info from V2Board, screenshot from FiddlerEverywhere and addclient.SetProxy("http://localhost:8866")
to the code.