You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
454 B
21 lines
454 B
// 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(),
|
|
})
|
|
})
|
|
}
|
|
|