From f3489814efef5041ccffd8c6b5a45e37c133627d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 8 Aug 2016 13:53:00 +0200 Subject: persistent-keepalive: change range to [1,65535] --- src/tools/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/config.c') diff --git a/src/tools/config.c b/src/tools/config.c index 55a8ab5..d307007 100644 --- a/src/tools/config.c +++ b/src/tools/config.c @@ -193,8 +193,8 @@ static inline bool parse_persistent_keepalive(__u16 *interval, const char *value } ret = strtoul(value, &end, 10); - if (!*value || *value == '-' || *end || (ret && (ret < 10 || ret > 3600))) { - fprintf(stderr, "The persistent keepalive interval must be 0/off or 10-3600. Found: `%s`\n", value); + if (!*value || *value == '-' || *end || ret > 65535) { + fprintf(stderr, "The persistent keepalive interval must be 0/off or 1-65535. Found: `%s`\n", value); return false; } -- cgit v1.2.3-59-g8ed1b