summaryrefslogtreecommitdiff
path: root/src/conf_mode/interface-openvpn.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-27 22:18:41 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-27 22:18:41 +0200
commite4f1bbb270f0afea295646764516675bbcfe0be5 (patch)
treec8274df24d99839dc34798afabc23bc6f2aa6262 /src/conf_mode/interface-openvpn.py
parent6cbf8db38ddca0c9e3b9cf1a52fc646cc2d5febb (diff)
downloadvyos-1x-e4f1bbb270f0afea295646764516675bbcfe0be5.tar.gz
vyos-1x-e4f1bbb270f0afea295646764516675bbcfe0be5.zip
openvpn: T1617: bugfix for server push-route
Diffstat (limited to 'src/conf_mode/interface-openvpn.py')
-rwxr-xr-xsrc/conf_mode/interface-openvpn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py
index a8313378b..4e5915d4e 100755
--- a/src/conf_mode/interface-openvpn.py
+++ b/src/conf_mode/interface-openvpn.py
@@ -522,9 +522,9 @@ def get_config():
# Route to be pushed to all clients
if conf.exists('server push-route'):
- network = conf.return_value('server push-route')
- tmp = IPv4Interface(network).with_netmask
- openvpn['server_push_route'] = tmp.replace(r'/', ' ')
+ for network in conf.return_values('server push-route'):
+ tmp = IPv4Interface(network).with_netmask
+ openvpn['server_push_route'].append(tmp.replace(r'/', ' '))
# Reject connections from clients that are not explicitly configured
if conf.exists('server reject-unconfigured-clients'):