File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ func (a *HostAgent) Run(ctx context.Context) error {
339339 }
340340
341341 // WSL instance SSH address isn't known until after VM start
342- if * a . instConfig . VMType == limatype . WSL2 {
342+ if a . driver . Info (). Features . DynamicSSHAddress {
343343 sshAddr , err := a .driver .SSHAddress (ctx )
344344 if err != nil {
345345 return err
@@ -575,7 +575,7 @@ func (a *HostAgent) watchGuestAgentEvents(ctx context.Context) {
575575 // TODO: use vSock (when QEMU for macOS gets support for vSock)
576576
577577 // Setup all socket forwards and defer their teardown
578- if * a . instConfig . VMType != limatype . WSL2 {
578+ if ! ( a . driver . Info (). Features . DynamicSSHAddress ) {
579579 logrus .Debugf ("Forwarding unix sockets" )
580580 for _ , rule := range a .instConfig .PortForwards {
581581 if rule .GuestSocket != "" {
You can’t perform that action at this time.
0 commit comments