Révision 17402c63
Ajouté par Ermal il y a plus de 9 ans
etc/inc/ipsec.inc | ||
---|---|---|
346 | 346 |
function ipsec_phase1_status($ipsec_status, $ikeid) { |
347 | 347 |
|
348 | 348 |
foreach ($ipsec_status as $ike) { |
349 |
if ($ike['peerconfig'] != "con{$ikeid}")
|
|
349 |
if ($ike['id'] != $ikeid)
|
|
350 | 350 |
continue; |
351 |
if ($ike['status'] == "established")
|
|
351 |
if ($ike['status'] == 'established')
|
|
352 | 352 |
return true; |
353 | 353 |
break; |
354 | 354 |
} |
... | ... | |
676 | 676 |
return $descr; |
677 | 677 |
} |
678 | 678 |
|
679 |
function ipsec_get_descr_by_peerconfig($peerconfig) { |
|
680 |
return ipsec_get_descr(substr($peerconfig, strrpos($peerconfig, '-') + 1)); |
|
681 |
} |
|
682 |
|
|
683 | 679 |
function ipsec_disconnect_mobile($username) { |
684 | 680 |
if (empty($username)) |
685 | 681 |
return false; |
Formats disponibles : Unified diff
Correct the ipsec status pages to show proper information as needed.