From 9f5048c7236deee49b0ae0104a7f54ab7e62a1c4 Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Tue, 16 Jul 2013 14:01:34 -0300 Subject: [PATCH] anidb: Handle UDP API 601 (server down) We treat it the same as a ban: wait 30 minutes before allowing any packets through. --- udp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udp.go b/udp.go index ec8f83d..3c47da0 100644 --- a/udp.go +++ b/udp.go @@ -149,7 +149,9 @@ func (udp *udpWrap) sendQueue() { } case 503, 504: // client library rejected panic(reply.Error()) - case 555: // IP (and user, possibly client) temporarily banned + // 555: IP (and user, possibly client) temporarily banned + // 601: Server down (treat the same as a ban) + case 555, 601: setBanned() } set.ch <- reply -- 2.44.0