mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-19 07:09:56 +00:00
22 lines
473 B
Go
22 lines
473 B
Go
//go:build unix && !darwin && !ios && !android
|
|
|
|
package server
|
|
|
|
func (s *Server) platformInit() {
|
|
// no-op on X11
|
|
}
|
|
|
|
// serviceAcceptLoop is not supported on Linux.
|
|
func (s *Server) serviceAcceptLoop() {
|
|
s.log.Warn("service mode not supported on Linux, falling back to direct mode")
|
|
s.acceptLoop()
|
|
}
|
|
|
|
func (s *Server) platformSessionManager() virtualSessionManager {
|
|
return newSessionManager(s.log)
|
|
}
|
|
|
|
func (s *Server) platformShutdown() {
|
|
// no-op on this platform
|
|
}
|