On Tue, Nov 11, 2014 at 3:12 AM, xiao <mybluebluesky2 at 163.com> wrote: >>You'll have to play with vpnc-script-win.js to achieve what you'd like >>to do. Once you do, please let us know too... > OK,I will delete the default route after connection established ,and add it after disconnect(just like OpenVPN do) > I find that the openconnect source code of Windows do not receive the cancel signal sended by the user (although the linux version do it ). > so the disconnect item of the vpnc-script-win.js will not run on Windows. I want to add the default route in the disconnect item. Interesting. When you press the disconnect button openconnect-gui sends the detach command to libopenconnect which should have ran the script. Isn't that the case? regards, Nikos