ipsec fixes & other cleanups

Sorry, I should have commented on that one specifically. I'm pretty sure
it's totally redundant with respect to the following "auto --add" command.
After removing it, I tried connecting to my (L2TP/IPsec) VPN with and
without the defaultroute option, and it worked perfectly with both
configurations.



On Sun, Nov 30, 2014 at 11:13 AM, Sergey Prokhorov <notifications@github.com
> wrote:

> In src/nm-l2tp-service.c:
>
> >  	}
> > -	sprintf(session_name, "nm-ipsec-l2tpd-%d", getpid());
> > -
> > -	sys += system("test -e /var/run/pluto/ipsec.info && . /var/run/pluto/ipsec.info;"
> > -	"PATH=/usr/local/sbin:/usr/sbin:/sbin; export PATH;"
> > -	"[ \"x$defaultrouteaddr\" = \"x\" ] && ipsec setup restart");
> > -
> > -	sys += system("PATH=/usr/local/sbin:/usr/sbin:/sbin ipsec whack"
> > -			" --listen");
> > -	sprintf(cmd1,"test -e /var/run/pluto/ipsec.info && . /var/run/pluto/ipsec.info;"
> > -	"PATH=/usr/local/sbin:/usr/sbin:/sbin ipsec addconn "
>
> Are you sure this ipsec addconn should be dropped?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/seriyps/NetworkManager-l2tp/pull/29/files#r21061266>.
>