diff options
| author | Nick Khyl <nickk@tailscale.com> | 2025-02-04 15:52:21 -0600 |
|---|---|---|
| committer | Nick Khyl <1761190+nickkhyl@users.noreply.github.com> | 2025-02-04 16:37:30 -0600 |
| commit | 9726e1f2089beadff6a0fd86fe1f8fe99d3daf5a (patch) | |
| tree | fb5a926a2a2d628693163b055faf1684cea7ac99 /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 0b7087c4012096ea5329b021606b0fc012ef6856 (diff) | |
| download | tailscale-9726e1f2089beadff6a0fd86fe1f8fe99d3daf5a.tar.xz tailscale-9726e1f2089beadff6a0fd86fe1f8fe99d3daf5a.zip | |
ipn/{ipnserver,localapi},tsnet: use ipnauth.Self as the actor in tsnet localapi handlers
With #14843 merged, (*localapi.Handler).servePrefs() now requires a non-nil actor,
and other places may soon require it as well.
In this PR, we update localapi.NewHandler with a new required parameter for the actor.
We then update tsnet to use ipnauth.Self.
We also rearrange the code in (*ipnserver.Server).serveHTTP() to pass the actor via Handler's
constructor instead of the field.
Updates #14823
Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
