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:
Franco Fichtner 2023-03-02 10:09:10 +01:00
parent 653745db59
commit 682e5401cc

View File

@ -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") {