mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-14 11:37:23 +08:00
Remove unused function
This commit is contained in:
parent
e26e3303cd
commit
87bfb53c1c
1 changed files with 0 additions and 10 deletions
10
utils.go
10
utils.go
|
@ -254,16 +254,6 @@ func GrpcSocketDialer(ctx context.Context, addr string) (net.Conn, error) {
|
||||||
return d.DialContext(ctx, "unix", addr)
|
return d.DialContext(ctx, "unix", addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ipPrefixToString(prefixes []netip.Prefix) []string {
|
|
||||||
result := make([]string, len(prefixes))
|
|
||||||
|
|
||||||
for index, prefix := range prefixes {
|
|
||||||
result[index] = prefix.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
func stringToIPPrefix(prefixes []string) ([]netip.Prefix, error) {
|
func stringToIPPrefix(prefixes []string) ([]netip.Prefix, error) {
|
||||||
result := make([]netip.Prefix, len(prefixes))
|
result := make([]netip.Prefix, len(prefixes))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue