Browse code

svn merge -r 770:771 $SO/trunk/openvpn

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@772 e7ae566f-a301-0410-adde-c780ea21d3b5

james authored on 2005/11/04 09:05:02
Showing 2 changed files
... ...
@@ -5,6 +5,9 @@ $Id$
5 5
 
6 6
 2005.11.xx -- Version 2.1-beta7
7 7
 
8
+* Fixed bug where --server directive in --dev tap mode
9
+  claimed that it would support subnets of /30 or less
10
+  but actually would only accept /29 or less.
8 11
 * Fixed bug in Linux get_default_gateway function
9 12
   introduced in 2.0.4, which would cause redirect-gateway
10 13
   on Linux clients to fail.
... ...
@@ -253,7 +253,7 @@ helper_client_server (struct options *o)
253 253
 	}
254 254
       else if (dev == DEV_TYPE_TAP)
255 255
 	{
256
-	  if (netbits >= 30)
256
+	  if (netbits > 30)
257 257
 	    msg (M_USAGE, "--server directive when used with --dev tap must define a subnet of %s or lower",
258 258
 		 print_netmask (30, &gc));
259 259