Skip to content

Commit 5c62b76

Browse files
committed
Sort addresses using the dedicated Less method
Signed-off-by: MrMelon54 <github@mrmelon54.com>
1 parent 93cfe84 commit 5c62b76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)