From 01bd789c26c795f8a6fed83ba05b79b62abb978f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 7 Nov 2021 11:22:08 -0800 Subject: [PATCH] ipn/ipnserver: add Server.LocalBackend accessor Was done as part of e6fbc0cd54906c85f58f8d69fb5872886db8811d for ssh work, but wasn't committed yet. Including it here both to minimize the ssh diff size, and because I need it for a separate change. Change-Id: If6eb54a2ca7150ace96488ed14582c2c05ca3422 Signed-off-by: Brad Fitzpatrick --- ipn/ipnserver/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipn/ipnserver/server.go b/ipn/ipnserver/server.go index 85376058f..8a1feef29 100644 --- a/ipn/ipnserver/server.go +++ b/ipn/ipnserver/server.go @@ -107,6 +107,9 @@ type Server struct { disconnectSub map[chan<- struct{}]struct{} // keys are subscribers of disconnects } +// LocalBackend returns the server's LocalBackend. +func (s *Server) LocalBackend() *ipnlocal.LocalBackend { return s.b } + // connIdentity represents the owner of a localhost TCP or unix socket connection. type connIdentity struct { Conn net.Conn