Skip to content

Commit c2e8e60

Browse files
committed
experiment with wsl2 in ha
Signed-off-by: Ansuman Sahoo <anshumansahoo500@gmail.com>
1 parent 5074038 commit c2e8e60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/hostagent/hostagent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 != "" {

0 commit comments

Comments
 (0)