mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-28 11:09:52 +09:00
Minor linting fixes
Remove magic number (base10...)
This commit is contained in:
committed by
Kristoffer Dalby
parent
78819be03c
commit
946d38e5d7
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)
|
||||
}
|
||||
|
||||
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) {
|
||||
result := make([]netip.Prefix, len(prefixes))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user