mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
src: whitespace and style sweep
This commit is contained in:
parent
2ef52e06af
commit
e346ceaddc
@ -127,5 +127,4 @@ class VoucherController extends ApiControllerBase
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -374,7 +374,7 @@ class Radius implements IAuthConnector
|
||||
if (!$radius) {
|
||||
syslog(LOG_ERR, 'RadiusError:' . radius_strerror($error));
|
||||
} else {
|
||||
switch($request) {
|
||||
switch ($request) {
|
||||
case RADIUS_ACCESS_ACCEPT:
|
||||
while ($resa = radius_get_attr($radius)) {
|
||||
switch ($resa['attr']) {
|
||||
|
||||
@ -51,10 +51,7 @@ for conns in s.list_conns():
|
||||
if child not in conns_found:
|
||||
conns_found.append(child)
|
||||
|
||||
# setup connection if found
|
||||
# setup connection if found
|
||||
for conn_id in conns_found:
|
||||
devnull = open(os.devnull, 'w')
|
||||
subprocess.call(['/usr/local/sbin/ipsec', 'up', conn_id], stdin=devnull, stdout=devnull, stderr=devnull)
|
||||
|
||||
|
||||
|
||||
|
||||
@ -47,10 +47,7 @@ for sas in s.list_sas():
|
||||
if sa == conn_id:
|
||||
conn_found = True
|
||||
|
||||
# terminate connection if found
|
||||
# terminate connection if found
|
||||
if conn_found:
|
||||
devnull = open(os.devnull, 'w')
|
||||
subprocess.call(['/usr/local/sbin/ipsec', 'down', conn_id], stdin=devnull, stdout=devnull, stderr=devnull)
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user