mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-30 05:25:35 +00:00
061422affc
FreeBSD tun devices don't work with the way we implement IPv6 https://github.com/tailscale/tailscale/issues/1307 At least for now, remove any IPv6 addresses from the netmap. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
34 lines
883 B
Go
34 lines
883 B
Go
// Copyright (c) 2020 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.
|
|
|
|
// Code generated by tailscale.com/cmd/cloner -type Config; DO NOT EDIT.
|
|
|
|
package dns
|
|
|
|
import (
|
|
"inet.af/netaddr"
|
|
)
|
|
|
|
// Clone makes a deep copy of Config.
|
|
// The result aliases no memory with the original.
|
|
func (src *Config) Clone() *Config {
|
|
if src == nil {
|
|
return nil
|
|
}
|
|
dst := new(Config)
|
|
*dst = *src
|
|
dst.Nameservers = append(src.Nameservers[:0:0], src.Nameservers...)
|
|
dst.Domains = append(src.Domains[:0:0], src.Domains...)
|
|
return dst
|
|
}
|
|
|
|
// A compilation failure here means this code must be regenerated, with command:
|
|
// tailscale.com/cmd/cloner -type Config
|
|
var _ConfigNeedsRegeneration = Config(struct {
|
|
Nameservers []netaddr.IP
|
|
Domains []string
|
|
PerDomain bool
|
|
Proxied bool
|
|
}{})
|