diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-04 19:01:11 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-04 19:01:11 +0000 |
commit | 36ee894646a8898368c2311a140cef7cd25c4b07 (patch) | |
tree | 636e83d4532d00431c5fe889d13948cc5c642ce1 | |
parent | Added "--server-bridge" (without parameters) to enable (diff) | |
download | openvpn-36ee894646a8898368c2311a140cef7cd25c4b07.tar.xz |
Fixed minor issue with --redirect-gateway bypass-dhcp or bypass-dns
on Windows. If the bypass IP address is 0.0.0.0 or 255.255.255.255,
ignore it.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3177 e7ae566f-a301-0410-adde-c780ea21d3b5
-rw-r--r-- | route.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2050,7 +2050,7 @@ netmask_to_netbits (const in_addr_t network, const in_addr_t netmask, int *netbi static void add_host_route_if_nonlocal (struct route_bypass *rb, const in_addr_t addr, const IP_ADAPTER_INFO *dgi) { - if (!is_ip_in_adapter_subnet (dgi, addr, NULL)) + if (!is_ip_in_adapter_subnet (dgi, addr, NULL) && addr != 0 && addr != ~0) add_bypass_address (rb, addr); } |