summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-13 21:17:40 +0100
committerGitHub <noreply@github.com>2020-11-13 21:17:40 +0100
commit1de5525ebed0a33af3460332bf9e074ff06b3bfb (patch)
treeaf81b6b1ef2e63822c3554659502726c021ac22c
parent7106e90daf7c15f167f38f7715facef37c141f4f (diff)
parente2976896c305cfc2c5eb6380e06f5294e058f989 (diff)
downloadvyos-1x-1de5525ebed0a33af3460332bf9e074ff06b3bfb.tar.gz
vyos-1x-1de5525ebed0a33af3460332bf9e074ff06b3bfb.zip
Merge pull request #606 from sever-sever/T3060
openvpn: T3060: Remote-host is a required param for client
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 7d5f7f3a0..c23e79948 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -320,7 +320,7 @@ def verify(openvpn):
if 'local_port' in openvpn:
raise ConfigError('Cannot specify "local-port" with "tcp-active"')
- if 'remote_host' in openvpn:
+ if 'remote_host' not in openvpn:
raise ConfigError('Must specify "remote-host" with "tcp-active"')
# shared secret and TLS