Fix Windows lint errcheck/unused and Linux nilerr in console VNC fallback

This commit is contained in:
Viktor Liu
2026-05-16 17:23:36 +02:00
parent 62cf9e873b
commit 7123e6d1f4
5 changed files with 10 additions and 17 deletions

View File

@@ -5,6 +5,8 @@ package internal
import (
"fmt"
log "github.com/sirupsen/logrus"
vncserver "github.com/netbirdio/netbird/client/vnc/server"
)
@@ -21,6 +23,7 @@ func newConsoleVNC() (vncserver.ScreenCapturer, vncserver.InputInjector, error)
}
inj, err := vncserver.NewUInputInjector(w, h)
if err != nil {
log.Debugf("uinput unavailable, falling back to view-only VNC: %v", err)
return poller, &vncserver.StubInputInjector{}, nil
}
return poller, inj, nil