From 9c966d4d043a0340503d6df577aa174a68468aed Mon Sep 17 00:00:00 2001 From: JBNRZ <76835191+JBNRZ@users.noreply.github.com> Date: Wed, 31 Dec 2025 18:20:30 +0800 Subject: [PATCH] Fix invalid log function usage (#1447) --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index a0bf64c..6c1c2a9 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -4099,7 +4099,7 @@ function disconnectClient() { local mgmt_socket="/var/run/openvpn/server.sock" if [[ ! -S "$mgmt_socket" ]]; then - log_warning "Management socket not found. Client may still be connected until they reconnect." + log_warn "Management socket not found. Client may still be connected until they reconnect." return 0 fi @@ -4107,7 +4107,7 @@ function disconnectClient() { if echo "kill $client_name" | socat - UNIX-CONNECT:"$mgmt_socket" >/dev/null 2>&1; then log_success "Client $client_name disconnected." else - log_warning "Could not disconnect client (they may not be connected)." + log_warn "Could not disconnect client (they may not be connected)." fi }