mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
Firewall/alias, fix migration code for https://github.com/opnsense/core/issues/1858 caused by https://github.com/opnsense/core/issues/2567, leaving the migration inactive for the time being.
This commit is contained in:
parent
7f0b486dbb
commit
eeb14c29fc
@ -59,7 +59,10 @@ class M1_0_0 extends BaseModelMigration
|
||||
$node->description = (string)$alias->descr;
|
||||
$node->name = (string)$alias->name;
|
||||
$node->type = (string)$alias->type;
|
||||
if ($alias->url) {
|
||||
if (in_array((string)$alias->type, array('urltable_ports', 'url_ports'))) {
|
||||
// unsupported, replace with empty port alias
|
||||
$node->type = "port";
|
||||
} elseif ($alias->url) {
|
||||
// url content only contains a single item
|
||||
$node->content = (string)$alias->url;
|
||||
} elseif ($alias->aliasurl) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user