]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add support for register-dns through interactive service
authorSelva Nair <selva.nair@gmail.com>
Fri, 11 Mar 2016 04:47:26 +0000 (23:47 -0500)
committerGert Doering <gert@greenie.muc.de>
Mon, 16 May 2016 15:44:45 +0000 (17:44 +0200)
commit3e42a558103e4e3f45ed28ccb761cefed20e8247
tree86834a16f67359f482bb9feb869062dc314e7f8f
parente3420d5683ffcc4386f78485bae3288a48f5cc17
Add support for register-dns through interactive service

The call to the service returns promptly after delegating the job to
a thread, before the task is completed. In the thread, "net stop dnscache",
"net start dnscache", "ipconfig /flushdns" and "ipconfig /register-dns"
are executed in that order.

Parallel execution of these commands is prevented by a lock that is
common to all connections started by the service.

Note: "net stop .." is used instead of "sc stop.." as the latter can
return before the service has fully stopped (in STOP_PENDING state),
causing the subsequent start to fail.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1457671646-4322-1-git-send-email-selva.nair@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11354
Signed-off-by: Gert Doering <gert@greenie.muc.de>
include/openvpn-msg.h
src/openvpn/tun.c
src/openvpnserv/interactive.c