Skip to content

Commit 797ef78

Browse files
committed
Sort addresses using the dedicated Less method
1 parent 1cb0079 commit 797ef78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func testConfigure(t *testing.T, c *wgctrl.Client, d *wgtypes.Device) {
195195
for i := range dn.Peers {
196196
ips := dn.Peers[i].AllowedIPs
197197
sort.Slice(ips, func(i, j int) bool {
198-
return ips[i].Addr().Compare(ips[j].Addr()) > 0
198+
return ips[i].Addr().Less(ips[j].Addr())
199199
})
200200
}
201201

0 commit comments

Comments
 (0)