From 10a23cd803c0784cbdd80daff6750f02c982df4f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 6 Nov 2020 18:44:55 +0100 Subject: openvpn: T3051: fix multiple pushed routes to preconfigured clients --- src/conf_mode/interfaces-openvpn.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py index 0c6acf4e5..b507afcc0 100755 --- a/src/conf_mode/interfaces-openvpn.py +++ b/src/conf_mode/interfaces-openvpn.py @@ -481,7 +481,11 @@ def generate(openvpn): client_file = os.path.join(ccd_dir, client) # Our client need's to know its subnet mask ... - client_config['subnet'] = dict_search('server.subnet', openvpn) + client_config['server_subnet'] = dict_search('server.subnet', openvpn) + + import pprint + pprint.pprint(client_config) + render(client_file, 'openvpn/client.conf.tmpl', client_config, trim_blocks=True, user=user, group=group) -- cgit v1.2.3