2021-08-30 16:45:55 +00:00
|
|
|
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2022-08-02 18:34:03 +00:00
|
|
|
//go:build go1.19 && (linux || darwin || freebsd || openbsd)
|
|
|
|
// +build go1.19
|
2021-08-30 16:45:55 +00:00
|
|
|
// +build linux darwin freebsd openbsd
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"tailscale.com/chirp"
|
|
|
|
"tailscale.com/wgengine"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
createBIRDClient = func(ctlSocket string) (wgengine.BIRDClient, error) {
|
|
|
|
return chirp.New(ctlSocket)
|
|
|
|
}
|
|
|
|
}
|