Skip to content

Commit e6220a8

Browse files
committed
app: fix static vsock context id
1 parent cbcb2b5 commit e6220a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bubbles-app/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl AsyncFactoryComponent for VmEntry {
342342
&[
343343
OsStr::new(Path::new(&env::var("HOME").expect("HOME var to be set")).join("bubbles/socat").as_os_str()),
344344
OsStr::new(&format!("UNIX-LISTEN:{},fork", vsock_socket_path.to_str().expect("string"))),
345-
OsStr::new("VSOCK-CONNECT:3:11111"),
345+
OsStr::new(&format!("VSOCK-CONNECT:{}:11111", index.current_index() + 10)),
346346
],
347347
SubprocessFlags::empty()
348348
).expect("start of socat process");
@@ -374,7 +374,7 @@ impl AsyncFactoryComponent for VmEntry {
374374
OsStr::new("--socket"),
375375
crosvm_socket_path.as_os_str(),
376376
OsStr::new("--vsock"),
377-
OsStr::new("3"),
377+
OsStr::new(&format!("{}", index.current_index() + 10)),
378378
OsStr::new("--gpu"),
379379
OsStr::new("context-types=cross-domain,displays=[]"),
380380
OsStr::new("--wayland-sock"),

0 commit comments

Comments
 (0)