]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Completely remove ancient IANA port warning.
authorArne Schwabe <arne@rfc2549.org>
Mon, 18 Jun 2012 18:39:05 +0000 (20:39 +0200)
committerDavid Sommerseth <davids@redhat.com>
Fri, 22 Jun 2012 10:17:33 +0000 (12:17 +0200)
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: 1340044749-10694-3-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/6742
Signed-off-by: David Sommerseth <davids@redhat.com>
src/openvpn/init.c
src/openvpn/options.c
src/openvpn/options.h

index 61fd2a6640f0bb35c03840fcba412a83b84adbb6..eacb67d986715ab9e4630eb060cc9a337ca5f5e3 100644 (file)
@@ -2462,12 +2462,6 @@ do_option_warnings (struct context *c)
 {
   const struct options *o = &c->options;
 
-#if 1 /* JYFIXME -- port warning */
-  if (!o->ce.port_option_used && (o->ce.local_port == OPENVPN_PORT && o->ce.remote_port == OPENVPN_PORT))
-    msg (M_WARN, "IMPORTANT: OpenVPN's default port number is now %d, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.",
-        OPENVPN_PORT);
-#endif
-
   if (o->ping_send_timeout && !o->ping_rec_timeout)
     msg (M_WARN, "WARNING: --ping should normally be used with --ping-restart or --ping-exit");
 
index 6eac407eeae0b9a08616edbe3c6abc2621c65fdd..17919868551f35e30b7607e8e9f456c8071999c7 100644 (file)
@@ -4921,7 +4921,6 @@ add_option (struct options *options,
          msg (msglevel, "Bad port number: %s", p[1]);
          goto err;
        }
-      options->ce.port_option_used = true;
       options->ce.local_port = options->ce.remote_port = port;
     }
   else if (streq (p[0], "lport") && p[1])
@@ -4936,7 +4935,6 @@ add_option (struct options *options,
          goto err;
        }
       options->ce.local_port_defined = true;
-      options->ce.port_option_used = true;
       options->ce.local_port = port;
     }
   else if (streq (p[0], "rport") && p[1])
@@ -4950,7 +4948,6 @@ add_option (struct options *options,
          msg (msglevel, "Bad remote port number: %s", p[1]);
          goto err;
        }
-      options->ce.port_option_used = true;
       options->ce.remote_port = port;
     }
   else if (streq (p[0], "bind"))
index ee0c69dd943d638d3ced0580def0de30b18f079c..caa31b25d06782e8e513c089a75e8ff439f2f021 100644 (file)
@@ -90,7 +90,6 @@ struct connection_entry
   int local_port;
   bool local_port_defined;
   int remote_port;
-  bool port_option_used;
   const char *local;
   const char *remote;
   bool remote_float;