diff --git a/assets/tpl/user_index.html b/assets/tpl/user_index.html
index 4da4fae..1968aba 100644
--- a/assets/tpl/user_index.html
+++ b/assets/tpl/user_index.html
@@ -34,6 +34,7 @@
Public Key |
E-Mail |
IP's |
+ Interface |
Handshake |
{{if eq $.UserManagePeers true}}
|
@@ -53,6 +54,7 @@
{{$p.PublicKey}} |
{{$p.Email}} |
{{$p.IPsStr}} |
+ {{$p.DeviceName}} |
{{$p.LastHandshake}} |
{{if eq $.UserManagePeers true}}
diff --git a/internal/server/handlers_common.go b/internal/server/handlers_common.go
index 8ccb8a7..c315dcf 100644
--- a/internal/server/handlers_common.go
+++ b/internal/server/handlers_common.go
@@ -128,8 +128,8 @@ func (s *Server) GetUserIndex(c *gin.Context) {
s.GetHandleError(c, http.StatusInternalServerError, "sort error", "failed to save session")
return
}
- c.Redirect(http.StatusSeeOther, "/admin")
- return
+ /*c.Redirect(http.StatusSeeOther, "/admin")
+ return*/
}
peers := s.peers.GetSortedPeersForEmail(currentSession.SortedBy["userpeers"], currentSession.SortDirection["userpeers"], currentSession.Email)
diff --git a/internal/wireguard/peermanager.go b/internal/wireguard/peermanager.go
index badf317..d406344 100644
--- a/internal/wireguard/peermanager.go
+++ b/internal/wireguard/peermanager.go
@@ -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
|