summaryrefslogtreecommitdiffstats
path: root/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/helper.c b/helper.c
index 266b246..c7333f6 100644
--- a/helper.c
+++ b/helper.c
@@ -143,6 +143,12 @@ helper_client_server (struct options *o)
#if P2MP
#if P2MP_SERVER
+/*
+ * Get tun/tap/null device type
+ */
+ const int dev = dev_type_enum (o->dev, o->dev_type);
+ const int topology = o->topology;
+
/*
*
* HELPER DIRECTIVE for IPv6
@@ -220,12 +226,6 @@ helper_client_server (struct options *o)
* push "route-gateway 10.8.0.1"
*/
- /*
- * Get tun/tap/null device type
- */
- const int dev = dev_type_enum (o->dev, o->dev_type);
- const int topology = o->topology;
-
if (o->server_defined)
{
int netbits = -2;