Skip to content

Commit 62bdb21

Browse files
committed
Fixed recvfrom hooking on Linux
Fixed DebugWarning format on netfilter/client.cpp
1 parent 381a785 commit 62bdb21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/netfilter/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace netfilter
2525
if( count / manager.GetMaxQueriesWindow( ) >= manager.GetMaxQueriesPerSecond( ) )
2626
{
2727
_DebugWarning(
28-
"[ServerSecure] %d.%d.%d.% reached its query limit!\n",
28+
"[ServerSecure] %d.%d.%d.%d reached its query limit!\n",
2929
( address >> 24 ) & 0xFF,
3030
( address >> 16 ) & 0xFF,
3131
( address >> 8 ) & 0xFF,

source/netfilter/core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ namespace netfilter
167167

168168
#else
169169

170-
static Detouring::Hook recvfrom_hook( "recvfrom", reinterpret_cast<void *>( recvfrom_detour ) );
170+
static Detouring::Hook recvfrom_hook( "libc", "recvfrom", reinterpret_cast<void *>( recvfrom_detour ) );
171171

172172
#endif
173173

0 commit comments

Comments
 (0)