mirror of https://github.com/OpenVPN/openvpn-gui
![]() - New option --command <action> <params> to send commands to a running instance of openvpn-gui.exe Supported actions are connect, disconnect, reconnect each of which takes the name of the config (with or without the extension .ovpn) as a parameter; disconnect_all, exit which take no parameter and silent_connection which takes an optional parameter = 0 or 1 (1 is the default) Examples: with the gui running, start a new instance as openvpn-gui.exe --command disconnect myvpn : ask running instance to disconnect myvpn if connected openvpn-gui.exe --command status myvpn : ask running instance to show the status window for myvpn if available openvpn-gui.exe --command disconnect_all : ask running instance to disconnect all active connections - The second instance exits after issuing a SendMessage to the already running instance. If no action is specified, the running instance is notified to show a balloon to alert the user - These messages may also be sent from scripts as COPYDATA messages with the wData element specifying the action to execute and lpData a pointer to the parameter. The dwData param must be one of WM_OVPN_xxx with xxx = START, STOP, RESTART, STOPALL, EXIT or SILENT. See main.h for their values. v2: Bug fixes based on test reports from larson0815 here: https://github.com/selvanair/openvpn-gui/issues/5 and cron410 here: https://github.com/OpenVPN/openvpn-gui/issues/104 Signed-off-by: Selva Nair <selva.nair@gmail.com> |
||
---|---|---|
.. | ||
connected.ico | ||
connecting.ico | ||
disconnected.ico | ||
openvpn-gui-res-cs.rc | ||
openvpn-gui-res-de.rc | ||
openvpn-gui-res-dk.rc | ||
openvpn-gui-res-en.rc | ||
openvpn-gui-res-es.rc | ||
openvpn-gui-res-fi.rc | ||
openvpn-gui-res-fr.rc | ||
openvpn-gui-res-it.rc | ||
openvpn-gui-res-jp.rc | ||
openvpn-gui-res-kr.rc | ||
openvpn-gui-res-nl.rc | ||
openvpn-gui-res-no.rc | ||
openvpn-gui-res-pl.rc | ||
openvpn-gui-res-pt.rc | ||
openvpn-gui-res-ru.rc | ||
openvpn-gui-res-se.rc | ||
openvpn-gui-res-tr.rc | ||
openvpn-gui-res-ua.rc | ||
openvpn-gui-res-zh-hant.rc | ||
openvpn-gui-res.rc | ||
openvpn-gui.ico | ||
openvpn-gui.manifest | ||
reconnecting.ico |