Replies: 2 comments
-
Testing 的逻辑是会自己创建一个server和client,然后在自己创建的server和client之间进行互动不是嘛。这样的话,不会和本机运行的v2ray进行交互吧 |
Beta Was this translation helpful? Give feedback.
-
Dear @sshwy , did you do that in previous versions? like 4.45.2? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在尝试使用 grpc 调用 v2ray api,但是总是出现
rpc error: code = Unknown desc = app/proxyman/command: unknown operation > Serial: Unknown type: types.v2fly.org/v2ray.core.app.proxyman.command.AddUserOperation
的错误。详细情况如下:拉取仓库的最新提交,本地构建 v2ray 可执行文件并配置好 api 参数。然后直接魔改
testing/scenarios/command_test.go
L277 把 cmdPort 改成 api 的端口,然后执行go test -v
。想知道是我哪里没有做对,或者说有没有其他解决方案 >_<
P. S. 还要把 AddUserOperation 里的 Tag ("v")写到 v2ray 的某个 inbound 配置里
v2ray 配置:
日志如下(只截了 TestCommanderAddRemoveUser):
Beta Was this translation helpful? Give feedback.
All reactions