Skip to content

Commit 0a23153

Browse files
committed
fix(vmm): trigger port forward reconfiguration on update-ports
When `update_vm` is called with `update_ports=true`, also call `reconfigure_port_forward` so running bridge-mode VMs get their forwarding rules updated without requiring a restart.
1 parent 054e088 commit 0a23153

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vmm/src/main_service.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,9 @@ impl VmmRpc for RpcHandler {
452452
.load_vm(&vm_work_dir, &Default::default(), false)
453453
.await
454454
.context("Failed to load VM")?;
455+
if request.update_ports {
456+
self.app.reconfigure_port_forward(&new_id).await;
457+
}
455458
Ok(Id { id: new_id })
456459
}
457460

0 commit comments

Comments
 (0)