mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 17:16:29 +00:00
16 lines
331 B
Go
16 lines
331 B
Go
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
|
||
|
|
package osrouter
|
||
|
|
|
||
|
|
import "net/netip"
|
||
|
|
|
||
|
|
//lint:ignore U1000 used in Windows/Linux tests only
|
||
|
|
func mustCIDRs(ss ...string) []netip.Prefix {
|
||
|
|
var ret []netip.Prefix
|
||
|
|
for _, s := range ss {
|
||
|
|
ret = append(ret, netip.MustParsePrefix(s))
|
||
|
|
}
|
||
|
|
return ret
|
||
|
|
}
|