summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-11-13 17:42:43 +0000
committersever-sever <v.gletenko@vyos.io>2020-11-13 17:42:43 +0000
commite2976896c305cfc2c5eb6380e06f5294e058f989 (patch)
treeaf81b6b1ef2e63822c3554659502726c021ac22c /src
parent7106e90daf7c15f167f38f7715facef37c141f4f (diff)
downloadvyos-1x-e2976896c305cfc2c5eb6380e06f5294e058f989.tar.gz
vyos-1x-e2976896c305cfc2c5eb6380e06f5294e058f989.zip
openvpn: T3060: Remote-host is a required param for client
Diffstat (limited to 'src')
-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