mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
sharing new portalclient plugins config
This commit is contained in:
parent
e6ad0f676f
commit
f8d2a410af
1 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ if args.refresh:
|
||||||
# Sync clients and packet counters from ipset into storage.
|
# Sync clients and packet counters from ipset into storage.
|
||||||
proc = run_ipset(
|
proc = run_ipset(
|
||||||
'list',
|
'list',
|
||||||
config.get('ipset', 'ipset_name'),
|
config.get('portalclient', 'ipset_name'),
|
||||||
'-output',
|
'-output',
|
||||||
'save',
|
'save',
|
||||||
use_sudo=use_sudo,
|
use_sudo=use_sudo,
|
||||||
|
@ -137,7 +137,7 @@ if args.refresh:
|
||||||
client = Client(
|
client = Client(
|
||||||
storage=sr,
|
storage=sr,
|
||||||
ip_address=client_ip,
|
ip_address=client_ip,
|
||||||
ipset_name=config.get('ipset', 'ipset_name'),
|
ipset_name=config.get('portalclient', 'ipset_name'),
|
||||||
use_sudo=use_sudo
|
use_sudo=use_sudo
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -201,7 +201,7 @@ for src_ip in args.src_ip:
|
||||||
client = Client(
|
client = Client(
|
||||||
storage=sr,
|
storage=sr,
|
||||||
ip_address=src_ip,
|
ip_address=src_ip,
|
||||||
ipset_name=config.get('ipset', 'ipset_name'),
|
ipset_name=config.get('portalclient', 'ipset_name'),
|
||||||
use_sudo=use_sudo
|
use_sudo=use_sudo
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue