Skip to contentSkip to conversation

nclients patch for 2.1_rc19

Openvpn-devel Rob Lemley 2 participants 2 messages Aug 15, 2009 – Aug 19, 2009

lore
Share & tools
lore

Rob Lemley

author
#0 lore raw

I noticed that building OpenVPN with --disable-server fails. Turns out to be a problem with the management server and the commands it allows. I've attached a simple patch which fixes it, not sure if it's "right" or not...

manage.c 2009-07-11 10:26:03 +0000 renamed from manage.c 2009-05-30 21:34:12 +0000 +2 -0
diff -Naur openvpn-2.1_rc18/manage.c openvpn-2.1_rc18-dynamic/manage.c
@@ -995,10 +995,12 @@
     {
       msg (M_CLIENT, "SUCCESS: pid=%d", openvpn_getpid ());
     }
+#ifdef MANAGEMENT_DEF_AUTH
   else if (streq (p[0], "nclients"))
     {
       man_client_n_clients (man);
     }
+#endif
   else if (streq (p[0], "signal"))
     {
       if (man_need (man, p, 1, 0))
#1 lore raw

Thanks for noticing that. I've committed the patch.

James

Quoted 20 lines · Rob Lemley

I noticed that building OpenVPN with --disable-server fails. Turns out to be a problem with the management server and the commands it allows. I've attached a simple patch which fixes it, not sure if it's "right" or not...

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

------------------------------------------------------------------------

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel