mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-23 18:15:26 +00:00
Format code
This commit is contained in:
parent
6567af7730
commit
fb203a2e45
@ -77,11 +77,9 @@ type MachineAddresses []netip.Addr
|
|||||||
func (ma MachineAddresses) Sort() {
|
func (ma MachineAddresses) Sort() {
|
||||||
sort.Slice(ma, func(index1, index2 int) bool {
|
sort.Slice(ma, func(index1, index2 int) bool {
|
||||||
if ma[index1].Is4() && ma[index2].Is6() {
|
if ma[index1].Is4() && ma[index2].Is6() {
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if ma[index1].Is6() && ma[index2].Is4() {
|
if ma[index1].Is6() && ma[index2].Is4() {
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user