diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-11 09:23:54 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-11 09:23:54 +0000 |
commit | e649847e631a6222b01ce229c29b800e8a8a0b41 (patch) | |
tree | b2cb0243beea4890a9c9d934388349ae86c6ba99 /src/server | |
parent | 9ea9296f8c7a5dae2a24699eb78242807b9468e0 (diff) | |
download | shibari-e649847e631a6222b01ce229c29b800e8a8a0b41.tar.xz |
Fix socket_recvnb46 invocation (need latest skalibs)
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/shibari-server-udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/shibari-server-udp.c b/src/server/shibari-server-udp.c index 82796dd..87f0118 100644 --- a/src/server/shibari-server-udp.c +++ b/src/server/shibari-server-udp.c @@ -200,7 +200,7 @@ int main (int argc, char const *const *argv) if (x[0].revents & IOPAUSE_EXCEPT) strerr_dief1x(111, "trouble with selfpipe") ; if (x[0].revents & IOPAUSE_READ) { handle_signals() ; continue ; } - r = sanitize_read(socket_recv46(x[1].fd, buf, 512, &remoteip, &remoteport)) ; + r = sanitize_read(socket_recv46(x[1].fd, buf, 512, &remoteip, &remoteport, ip46_is6(&localip))) ; if (!r) continue ; if (r == -1) strerr_diefu1sys(111, "recv from socket") ; if (rulestype && !check_rules(&remoteip, ¶ms, &loc)) continue ; |