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