mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
VPN: IPsec: Virtual Tunnel Interfaces - fix typo in protocol family parsing, part one of https://github.com/opnsense/core/issues/6777
This commit is contained in:
parent
ada90c819a
commit
3f5bec4a1e
@ -231,7 +231,7 @@ class Swanctl extends BaseModel
|
||||
$result = [];
|
||||
foreach ($this->VTIs->VTI->iterateItems() as $node_uuid => $node) {
|
||||
if ((string)$node->origin != 'legacy' && (string)$node->enabled == '1') {
|
||||
$inet = strpos((string)$node->local_tunnel, ':') > 0 ? 'inet6' : 'inet';
|
||||
$inet = strpos((string)$node->tunnel_local, ':') > 0 ? 'inet6' : 'inet';
|
||||
$result['ipsec' . (string)$node->reqid] = [
|
||||
'reqid' => (string)$node->reqid,
|
||||
'local' => (string)$node->local,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user