mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 22:15:51 +00:00
09de240934
The local web client has the same characteristic as tailscale serve, in that it needs a local listener to allow for connections from the local machine itself when running in kernel networking mode. This change renames and adapts the existing serveListener to allow it to be used by the web client as well. Updates tailscale/corp#14335 Signed-off-by: Will Norris <will@tailscale.com>
31 lines
614 B
Go
31 lines
614 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ios || android
|
|
|
|
package ipnlocal
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
|
|
"tailscale.com/client/tailscale"
|
|
)
|
|
|
|
const webClientPort = 5252
|
|
|
|
type webClient struct{}
|
|
|
|
func (b *LocalBackend) SetWebLocalClient(lc *tailscale.LocalClient) {}
|
|
|
|
func (b *LocalBackend) WebClientInit() error {
|
|
return errors.New("not implemented")
|
|
}
|
|
|
|
func (b *LocalBackend) WebClientShutdown() {}
|
|
|
|
func (b *LocalBackend) handleWebClientConn(c net.Conn) error {
|
|
return errors.New("not implemented")
|
|
}
|
|
func (b *LocalBackend) updateWebClientListenersLocked() {}
|