mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
ipsec: fix auth server parsing regression
PR: https://forum.opnsense.org/index.php?topic=46774.0
This commit is contained in:
parent
25b2716325
commit
fb87f688f6
@ -203,8 +203,8 @@ class IPsec extends BaseModel
|
||||
foreach (explode(',', (string)$item) as $item) {
|
||||
$idx = 'server' . (string)(count($servers) + 1);
|
||||
$mapping = [];
|
||||
if (isset($cnf->authserver)) {
|
||||
foreach ($cnf->authserver as $authserver) {
|
||||
if (isset($cnf->system->authserver)) {
|
||||
foreach ($cnf->system->authserver as $authserver) {
|
||||
if ($authserver->name == $item) {
|
||||
$servers[$idx] = [
|
||||
'address' => (string)$authserver->host,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user