IsNetstackRouter reports whether Tailscale is either fully netstack based (without TUN) or is at least using netstack for routing.
()
| 175 | // IsNetstackRouter reports whether Tailscale is either fully netstack based |
| 176 | // (without TUN) or is at least using netstack for routing. |
| 177 | func (s *System) IsNetstackRouter() bool { |
| 178 | if v, ok := s.NetstackRouter.GetOK(); ok && v { |
| 179 | return true |
| 180 | } |
| 181 | return s.IsNetstack() |
| 182 | } |
| 183 | |
| 184 | // IsNetstack reports whether Tailscale is running as a netstack-based TUN-free engine. |
| 185 | func (s *System) IsNetstack() bool { |