Ticket #272: 8126.patch

File 8126.patch, 1.2 KB (added by Samuli Seppänen, 8 years ago)

Git-am -style patch extracted from SVN using svnrev2git.py

  • options.c

    From: James Yonan <james@openvpn.net>
    Date: lun, 13 ago 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]);
  • options.h

    a b  
    221221  struct remote_host_store *rh_store;
    222222#endif
    223223
     224  const char *remote_override;
     225
    224226  bool remote_random;
    225227  const char *ipchange;
    226228  const char *dev;