summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/openvpn/init.c17
-rw-r--r--src/openvpn/options.c5
-rw-r--r--src/openvpn/options.h1
3 files changed, 2 insertions, 21 deletions
diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index 676a7fe..2076aad 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -245,7 +245,7 @@ management_callback_remote_cmd (void *arg, const char **p)
}
static bool
-ce_management_query_remote (struct context *c, const char *remote_ip_hint)
+ce_management_query_remote (struct context *c)
{
struct gc_arena gc = gc_new ();
volatile struct connection_entry *ce = &c->options.ce;
@@ -270,8 +270,6 @@ ce_management_query_remote (struct context *c, const char *remote_ip_hint)
}
{
const int flags = ((ce->flags>>CE_MAN_QUERY_REMOTE_SHIFT) & CE_MAN_QUERY_REMOTE_MASK);
- if (flags == CE_MAN_QUERY_REMOTE_ACCEPT && remote_ip_hint)
- ce->remote = remote_ip_hint;
ret = (flags != CE_MAN_QUERY_REMOTE_SKIP);
}
gc_free (&gc);
@@ -321,9 +319,6 @@ next_connection_entry (struct context *c)
int n_cycles = 0;
do {
- const char *remote_ip_hint = NULL;
- bool newcycle = false;
-
ce_defined = true;
if (l->no_advance && l->current >= 0)
{
@@ -338,16 +333,10 @@ next_connection_entry (struct context *c)
if (++n_cycles >= 2)
msg (M_FATAL, "No usable connection profiles are present");
}
-
- if (l->current == 0)
- newcycle = true;
}
ce = l->array[l->current];
- if (c->options.remote_ip_hint && !l->n_cycles)
- remote_ip_hint = c->options.remote_ip_hint;
-
if (ce->flags & CE_DISABLED)
ce_defined = false;
@@ -356,14 +345,12 @@ next_connection_entry (struct context *c)
if (ce_defined && management && management_query_remote_enabled(management))
{
/* allow management interface to override connection entry details */
- ce_defined = ce_management_query_remote(c, remote_ip_hint);
+ ce_defined = ce_management_query_remote(c);
if (IS_SIG (c))
break;
}
else
#endif
- if (remote_ip_hint)
- c->options.ce.remote = remote_ip_hint;
#ifdef ENABLE_MANAGEMENT
if (ce_defined && management && management_query_proxy_enabled (management))
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 809bfa0..aa12cbd 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -4435,11 +4435,6 @@ add_option (struct options *options,
options->ignore_unknown_option[i] = NULL;
}
- else if (streq (p[0], "remote-ip-hint") && p[1])
- {
- VERIFY_PERMISSION (OPT_P_GENERAL);
- options->remote_ip_hint = p[1];
- }
#if HTTP_PROXY_OVERRIDE
else if (streq (p[0], "http-proxy-override") && p[1] && p[2])
{
diff --git a/src/openvpn/options.h b/src/openvpn/options.h
index 659d05b..b320ca1 100644
--- a/src/openvpn/options.h
+++ b/src/openvpn/options.h
@@ -210,7 +210,6 @@ struct options
/* Networking parms */
struct connection_entry ce;
- char *remote_ip_hint;
struct connection_list *connection_list;
struct remote_list *remote_list;
bool force_connection_list;