tun: Don't call tunnel script on reconnect events
authorKevin Cernekee <cernekee@gmail.com>
Wed, 14 Nov 2012 03:00:24 +0000 (19:00 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 14 Nov 2012 10:08:16 +0000 (10:08 +0000)
commit4bde16100ba05b162cf24311b4a77b34860c577b
tree91f863683cda8ecbd3464d2fcbb8cc8699087b2d
parentada3dea00e4c7163353ad5efe05b927f87cd8f4a
tun: Don't call tunnel script on reconnect events

If --script-tun is used, the vpnc_script is not invoked for pre-init,
connect, or disconnect events.  However, it is invoked on reconnect, and
this may confuse the tunnel script.

Add an extra check to script_config_tun() to make the reconnect behavior
consistent with the behavior of other events.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
tun.c