mirror of
https://github.com/h44z/wg-portal.git
synced 2025-10-04 15:36:18 +00:00
Add Interface column in user profile and fix sorting
This commit is contained in:
@@ -731,6 +731,9 @@ func sortPeers(sortKey string, sortDirection string, peers []Peer) {
|
||||
case "endpoint":
|
||||
sortValueLeft = peers[i].Endpoint
|
||||
sortValueRight = peers[j].Endpoint
|
||||
case "device":
|
||||
sortValueLeft = peers[i].DeviceName
|
||||
sortValueRight = peers[j].DeviceName
|
||||
case "handshake":
|
||||
if peers[i].Peer == nil {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user