From 40ce4f195beb7a64fd326cda201d4f8a684fa72f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 19 Oct 2015 21:17:38 +0200 Subject: [PATCH] Allow setting $DROPFROM without having to specify $DROPTO as well. --- test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.c b/test.c index d7e1cdc..47732e4 100644 --- a/test.c +++ b/test.c @@ -113,6 +113,9 @@ int main(int argc, char *argv[]) { reorder = atof(getenv("REORDER") ?: "0"); reorder_dist = atoi(getenv("REORDER_DIST") ?: "10"); + if(dropto < dropfrom) + dropto = 1 << 30; + struct addrinfo *ai; struct addrinfo hint = { .ai_flags = server ? AI_PASSIVE : 0, -- 2.39.2