From 739efc67e5f64673f114f04a23fe4c28bbed0b96 Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Sun, 16 Jun 2024 03:09:25 +0000 Subject: [PATCH] fix log message format --- ww/managers/socket_manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ww/managers/socket_manager.c b/ww/managers/socket_manager.c index a2ad1728..e53c8faf 100644 --- a/ww/managers/socket_manager.c +++ b/ww/managers/socket_manager.c @@ -98,15 +98,16 @@ static bool redirectPortUdp(unsigned int port, unsigned int to) static bool resetIptables(bool safe_mode) { - char msg[] = "SocketManager: clearing iptables nat rules\n"; if (safe_mode) { + char msg[] = "SocketManager: clearing iptables nat rules\n"; ssize_t _ = write(STDOUT_FILENO, msg, sizeof(msg)); (void) _; } else { + char msg[] = "SocketManager: clearing iptables nat rules"; LOGD(msg); }