mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 03:52:28 +02:00
Refuse server mode on Android
After the commit 042429d3
"build: Remove --disable-server from ./configure"
Android needs another way to ensure that OpenVPN is not run in server mode.
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20200518155427.17283-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19904.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
14a57be460
commit
cc76e17760
@ -2253,6 +2253,9 @@ options_postprocess_verify_ce(const struct options *options, const struct connec
|
||||
*/
|
||||
if (options->mode == MODE_SERVER)
|
||||
{
|
||||
#ifdef TARGET_ANDROID
|
||||
msg(M_FATAL, "--mode server not supported on Android");
|
||||
#endif
|
||||
if (!(dev == DEV_TYPE_TUN || dev == DEV_TYPE_TAP))
|
||||
{
|
||||
msg(M_USAGE, "--mode server only works with --dev tun or --dev tap");
|
||||
|
Loading…
Reference in New Issue
Block a user