ipn: serve web client requests from LocalBackend

instead of starting a separate server listening on a particular port,
use the TCPHandlerForDst method to intercept requests for the special
web client port (currently 5252, probably configurable later).

Updates tailscale/corp#14335

Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris
2023-10-26 11:39:20 -07:00
committed by Will Norris
parent 28ad910840
commit ea599b018c
3 changed files with 21 additions and 32 deletions
+5
View File
@@ -7,6 +7,7 @@ package ipnlocal
import (
"errors"
"net"
"tailscale.com/client/tailscale"
)
@@ -20,3 +21,7 @@ func (b *LocalBackend) WebInit() error {
}
func (b *LocalBackend) WebShutdown() {}
func (b *LocalBackend) handleWebClientConn(c net.Conn) error {
return errors.New("not implemented")
}