From 29ed00aed66c648510480897bd92977652e5d18f Mon Sep 17 00:00:00 2001 From: sever-sever Date: Thu, 22 Oct 2020 10:35:19 +0000 Subject: accel: T2631: Add option for radius disable-accounting --- src/conf_mode/vpn_pptp.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf_mode/vpn_pptp.py') diff --git a/src/conf_mode/vpn_pptp.py b/src/conf_mode/vpn_pptp.py index 306d05c60..3125ee9d0 100755 --- a/src/conf_mode/vpn_pptp.py +++ b/src/conf_mode/vpn_pptp.py @@ -121,6 +121,9 @@ def get_config(config=None): conf.set_level(base_path + ['authentication', 'radius', 'server', server]) + if conf.exists(['disable-accounting']): + radius['acct_port'] = '0' + if conf.exists(['fail-time']): radius['fail_time'] = conf.return_value(['fail-time']) -- cgit v1.2.3