Ticket #261: redirect-private.patch

File redirect-private.patch, 524 bytes (added by guyyur, 9 years ago)

Patch

  • src/openvpn/route.c

    diff --git a/src/openvpn/route.c b/src/openvpn/route.c
    index dd69d8e..df80286 100644
    a b redirect_default_route_to_vpn (struct route_list *rl, const struct tuntap *tt, u 
    837837
    838838  if ( rl && rl->flags & RG_ENABLE )
    839839    {
    840       if (!(rl->spec.flags & RTSA_REMOTE_ENDPOINT))
     840      if (!(rl->spec.flags & RTSA_REMOTE_ENDPOINT) && (rl->flags & RG_REROUTE_GW))
    841841        {
    842842          msg (M_WARN, "%s VPN gateway parameter (--route-gateway or --ifconfig) is missing", err);
    843843        }