daemon: Improve URLTest

This commit is contained in:
世界
2026-08-30 17:41:44 +08:00
parent 1698e6cf66
commit c90f3564e8
2 changed files with 25 additions and 17 deletions
+2 -2
View File
@@ -550,10 +550,10 @@ func (c *CommandClient) SelectOutbound(groupTag string, outboundTag string) erro
return nil
}
func (c *CommandClient) URLTest(groupTag string) error {
func (c *CommandClient) URLTest(outboundTag string) error {
_, err := callWithResult(c, func(ctx context.Context, client daemon.StartedServiceClient) (*emptypb.Empty, error) {
return client.URLTest(ctx, &daemon.URLTestRequest{
OutboundTag: groupTag,
OutboundTag: outboundTag,
})
})
if err != nil {