From 26213a792bf5842d30786dfc339df4a622f01181 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Aug 2019 18:03:24 +0200 Subject: openvpn: T1548: fix generated client subnet mask for topology 'server' --- src/conf_mode/interface-openvpn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 " ". 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'/') -- cgit v1.2.3