1
0
Fork 0
mirror of synced 2025-01-19 02:06:09 -05:00

Changed the "status" command to "status 1" for the mgmt interface of the openvpn server for correct parsing of the status of active clients and routes

This commit is contained in:
Izhikov Matvey 2025-01-06 16:25:47 +04:00
parent 2ed4fdb369
commit 756cb096c9

View file

@ -1346,7 +1346,7 @@ func (oAdmin *OvpnAdmin) mgmtGetActiveClients() []clientStatus {
break break
} }
oAdmin.mgmtRead(conn) // read welcome message oAdmin.mgmtRead(conn) // read welcome message
conn.Write([]byte("status\n")) conn.Write([]byte("status 1\n"))
activeClients = append(activeClients, oAdmin.mgmtConnectedUsersParser(oAdmin.mgmtRead(conn), srv)...) activeClients = append(activeClients, oAdmin.mgmtConnectedUsersParser(oAdmin.mgmtRead(conn), srv)...)
conn.Close() conn.Close()
} }