@@ -53,7 +53,7 @@ type HostAgent struct {
5353 instName string
5454 instSSHAddress string
5555 sshConfig * ssh.SSHConfig
56- portForwarder * portForwarder
56+ portForwarder * portForwarder // legacy SSH port forwarder (deprecated)
5757 grpcPortForwarder * portfwd.Forwarder
5858
5959 onClose []func () error // LIFO
@@ -644,9 +644,12 @@ func (a *HostAgent) processGuestAgentEvents(ctx context.Context, client *guestag
644644 for _ , f := range ev .Errors {
645645 logrus .Warnf ("received error from the guest: %q" , f )
646646 }
647- // useSSHFwd was false by default in v1.0, but reverted to true by default in v1.0.1
648- // due to stability issues
649- useSSHFwd := true
647+ // History of the default value of useSSHFwd:
648+ // - v0.1.0: true (effectively)
649+ // - v1.0.0: false
650+ // - v1.0.1: true
651+ // - v1.1.0-beta.0: false
652+ useSSHFwd := false
650653 if envVar := os .Getenv ("LIMA_SSH_PORT_FORWARDER" ); envVar != "" {
651654 b , err := strconv .ParseBool (os .Getenv ("LIMA_SSH_PORT_FORWARDER" ))
652655 if err != nil {
@@ -656,6 +659,7 @@ func (a *HostAgent) processGuestAgentEvents(ctx context.Context, client *guestag
656659 }
657660 }
658661 if useSSHFwd {
662+ logrus .Warn ("LIMA_SSH_PORT_FORWARDER is deprecated" )
659663 a .portForwarder .OnEvent (ctx , ev )
660664 } else {
661665 a .grpcPortForwarder .OnEvent (ctx , client , ev )
0 commit comments