From 756cb096c9a37b37255dfa747d2a9a695a3de45d Mon Sep 17 00:00:00 2001 From: Izhikov Matvey Date: Mon, 6 Jan 2025 16:25:47 +0400 Subject: [PATCH] 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 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fd08df4..f2a5cb8 100644 --- a/main.go +++ b/main.go @@ -1346,7 +1346,7 @@ func (oAdmin *OvpnAdmin) mgmtGetActiveClients() []clientStatus { break } 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)...) conn.Close() }