mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
24 lines
517 B
Go
24 lines
517 B
Go
//go:build darwin && !ios
|
|
|
|
package internal
|
|
|
|
import (
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
vncserver "github.com/netbirdio/netbird/client/vnc/server"
|
|
)
|
|
|
|
func newPlatformVNC() (vncserver.ScreenCapturer, vncserver.InputInjector) {
|
|
capturer := vncserver.NewMacPoller()
|
|
injector, err := vncserver.NewMacInputInjector()
|
|
if err != nil {
|
|
log.Debugf("VNC: macOS input injector: %v", err)
|
|
return capturer, &vncserver.StubInputInjector{}
|
|
}
|
|
return capturer, injector
|
|
}
|
|
|
|
func vncNeedsServiceMode() bool {
|
|
return false
|
|
}
|