mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
ipsec: fix a warning in PHP 8
Default case handles "lan", "wan", etc. so "none" seems like the more probable option.
This commit is contained in:
parent
653745db59
commit
682e5401cc
@ -546,7 +546,7 @@ function ipsec_parse_phase2($ikeid)
|
||||
*/
|
||||
function ipsec_idinfo_to_cidr(&$idinfo, $addrbits = false, $mode = '')
|
||||
{
|
||||
switch ($idinfo['type']) {
|
||||
switch ($idinfo['type'] ?? 'none') {
|
||||
case "address":
|
||||
if ($addrbits) {
|
||||
if ($mode == "tunnel6") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user