Ticket #272: 8126-fixed.patch

File 8126-fixed.patch, 920 bytes (added by Samuli Seppänen, 8 years ago)

Patch with fixed paths

  • src/openvpn/options.c

    From: James Yonan <james@openvpn.net>
    Date: Mon, 13 Aug 2012 19:11:10 +0300
    Subject: [PATCH] Added remote-override option.
    
    
    ---
    
    a b  
    39463946      options->force_connection_list = true;
    39473947    }
    39483948#endif
     3949  else if (streq (p[0], "remote-override") && p[1])
     3950    {
     3951      VERIFY_PERMISSION (OPT_P_GENERAL);
     3952      options->remote_override = p[1];
     3953    }
    39493954  else if (streq (p[0], "remote") && p[1])
    39503955    {
    39513956      struct remote_entry re;
     
    39533958      re.remote_port = re.proto = -1;
    39543959
    39553960      VERIFY_PERMISSION (OPT_P_GENERAL|OPT_P_CONNECTION);
    3956       re.remote = p[1];
     3961      re.remote = options->remote_override ? options->remote_override : p[1];
    39573962      if (p[2])
    39583963        {
    39593964          const int port = atoi (p[2]);