fix: port splitting (#44)

This commit is contained in:
Julian Sommer
2026-02-18 15:20:40 +11:00
committed by GitHub
parent 0c65d75371
commit ca14ecf2bc
+2 -2
View File
@@ -1623,8 +1623,8 @@ func (d *Daemon) StartInstance(instance *vm.VM) error {
return err
}
// Just the ipv4 port required
sshDebugPort = strings.Replace(sshDebugPort, "[::]:", "", 1)
// Extract just the port number
_, sshDebugPort, _ = net.SplitHostPort(sshDebugPort)
// TODO: Make configurable
instance.Config.NetDevs = append(instance.Config.NetDevs, vm.NetDev{