mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 17:16:29 +00:00
22 lines
454 B
Go
22 lines
454 B
Go
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
|
||
|
|
//go:build !ts_omit_webclient
|
||
|
|
|
||
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"tailscale.com/client/local"
|
||
|
|
"tailscale.com/ipn/ipnlocal"
|
||
|
|
"tailscale.com/paths"
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
hookConfigureWebClient.Set(func(lb *ipnlocal.LocalBackend) {
|
||
|
|
lb.ConfigureWebClient(&local.Client{
|
||
|
|
Socket: args.socketpath,
|
||
|
|
UseSocketOnly: args.socketpath != paths.DefaultTailscaledSocket(),
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|