aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--helper.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b8d32e..2db24fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@ $Id$
2005.11.xx -- Version 2.1-beta7
+* Fixed bug where --server directive in --dev tap mode
+ claimed that it would support subnets of /30 or less
+ but actually would only accept /29 or less.
* Fixed bug in Linux get_default_gateway function
introduced in 2.0.4, which would cause redirect-gateway
on Linux clients to fail.
diff --git a/helper.c b/helper.c
index 9b0857e..7a69816 100644
--- a/helper.c
+++ b/helper.c
@@ -253,7 +253,7 @@ helper_client_server (struct options *o)
}
else if (dev == DEV_TYPE_TAP)
{
- if (netbits >= 30)
+ if (netbits > 30)
msg (M_USAGE, "--server directive when used with --dev tap must define a subnet of %s or lower",
print_netmask (30, &gc));