From e496ee7a8097b9475b3383eed1ddc5a015029566 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Tue, 3 Jan 2023 05:14:34 -0800 Subject: [PATCH] Be less pushy about redbean ddos protection --- tool/net/redbean.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 93182c64f..3ed066455 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -4903,9 +4903,10 @@ static int LuaProgramTokenBucket(lua_State *L) { } else if (sendto(blackhole.fd, &testip, 4, 0, (struct sockaddr *)&blackhole.addr, sizeof(blackhole.addr)) == -1) { - WARNF("(token) error: sendto(%`'s) failed: %m", blackhole.addr.sun_path); - WARNF("(token) redbean isn't able to protect your kernel from ddos"); - WARNF("(token) please run the blackholed program; see our website!"); + VERBOSEF("(token) error: sendto(%`'s) failed: %m", + blackhole.addr.sun_path); + VERBOSEF("(token) redbean isn't able to protect your kernel from ddos"); + VERBOSEF("(token) please run the blackholed program; see our website!"); } } tokenbucket.b = _mapshared(ROUNDUP(1ul << cidr, FRAMESIZE));