Skip to content

Commit 9c966d4

Browse files
authored
Fix invalid log function usage (angristan#1447)
1 parent 28050ef commit 9c966d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openvpn-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4099,15 +4099,15 @@ function disconnectClient() {
40994099
local mgmt_socket="/var/run/openvpn/server.sock"
41004100

41014101
if [[ ! -S "$mgmt_socket" ]]; then
4102-
log_warning "Management socket not found. Client may still be connected until they reconnect."
4102+
log_warn "Management socket not found. Client may still be connected until they reconnect."
41034103
return 0
41044104
fi
41054105

41064106
log_info "Disconnecting client $client_name..."
41074107
if echo "kill $client_name" | socat - UNIX-CONNECT:"$mgmt_socket" >/dev/null 2>&1; then
41084108
log_success "Client $client_name disconnected."
41094109
else
4110-
log_warning "Could not disconnect client (they may not be connected)."
4110+
log_warn "Could not disconnect client (they may not be connected)."
41114111
fi
41124112
}
41134113

0 commit comments

Comments
 (0)