diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:03:24 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:03:24 +0200 |
commit | 26213a792bf5842d30786dfc339df4a622f01181 (patch) | |
tree | 7829878c6f3bbd909ebce0f0d0127f6dc4345f02 /src/conf_mode/interface-openvpn.py | |
parent | c44cb75ac461cf7ef81e47f0bbd9f395abdd5f1e (diff) | |
download | vyos-1x-26213a792bf5842d30786dfc339df4a622f01181.tar.gz vyos-1x-26213a792bf5842d30786dfc339df4a622f01181.zip |
openvpn: T1548: fix generated client subnet mask for topology 'server'
Diffstat (limited to 'src/conf_mode/interface-openvpn.py')
-rwxr-xr-x | src/conf_mode/interface-openvpn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py index 0f1cebaad..47257e9d7 100755 --- a/src/conf_mode/interface-openvpn.py +++ b/src/conf_mode/interface-openvpn.py @@ -506,7 +506,7 @@ def get_config(): # with "topology p2p", this is "<ip> <our_ip>". if openvpn['server_topology'] == 'subnet': # we are only interested in the netmask portion of server_subnet - data['remote_netmask'] = openvpn['server_subnet'][1] + data['remote_netmask'] = openvpn['server_subnet'].split(' ')[1] else: # we need the server subnet in format 192.0.2.0/255.255.255.0 subnet = openvpn['server_subnet'].replace(' ', r'/') |