-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> > So, you asked for it, you or Arne get to review this :-) - it's currently > missing a man page entry, but the commit message explains how it works - > just put and a changlog entry :) > > > push-remove tun-ipv6 > push-remove route-ipv6 > > into your ccd/ file, and all options strings starting with one of these > strings are removed. Caveat: "push-remove route" will remove IPv4 and > IPv6 routes, so to remove only IPv4 routes, use > > push-remove 'route ' A sounds like more of a hack that anything. > > > (our config parser is just magic :) ) > > Missing in this patch is "openvpn.8" and you can't remove "ifconfig-ipv6" > (or "ifconfig", for that matter) from the push list as these are not normal > options but special cased - but that is actually not very hard to add if > you agree with the general direction. > > gert > > PS: merry christmas everyone :-) > +void +push_remove_option (struct options *o, const char *p) +{ + msg( D_PUSH, "PUSH_REMOVE '%s'", p ); + + if (o && o->push_list.head ) + { + struct gc_arena gc = gc_new (); That gc is never gc'ed and is alos not used :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iEYEARECAAYFAlZ/FGgACgkQe8+cMNS4zRcOpgCfQdoyXJeE5w+aEfArX+3O002q pGUAniqnoMlwXqsQLbGcO1UWT/bESiY8 =8ulD -----END PGP SIGNATURE-----