From 0faa4dfeb2158e14fd458a4d3836db6be7ab0214 Mon Sep 17 00:00:00 2001
From: jackey_1024 <jikui2@huawei.com>
Date: Mon, 21 Oct 2024 16:51:02 +0800
Subject: [PATCH] sandbox:sandbox api update

Signed-off-by: jackey_1024 <jikui2@huawei.com>
---
 src/client/client.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/client.rs b/src/client/client.rs
index 2151e23..fe1b1c2 100644
--- a/src/client/client.rs
+++ b/src/client/client.rs
@@ -118,8 +118,8 @@ fn connect_to_unix_socket(abs: bool, address: &str) -> Result<RawFd> {
 }
 
 pub fn new_conn(container_id: &String, addr: &String) -> Result<()> {
-    let fd = if addr.starts_with("vsock://") {
-        let address = addr.strip_prefix("vsock://").unwrap();
+    let fd = if addr.starts_with("ttrpc+vsock://") {
+        let address = addr.strip_prefix("ttrpc+vsock://").unwrap();
         connect_to_vsock(address)?
     } else {
         let address = if addr.starts_with("unix://") {
-- 
2.45.0

