From: Guus Sliepen Date: Mon, 19 Oct 2015 19:17:38 +0000 (+0200) Subject: Allow setting $DROPFROM without having to specify $DROPTO as well. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=40ce4f195beb7a64fd326cda201d4f8a684fa72f;p=utcp Allow setting $DROPFROM without having to specify $DROPTO as well. --- 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,