mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
firewall, alias. remove dependency of filter_expand_alias_array for https://github.com/opnsense/core/issues/1971
This commit is contained in:
parent
9024f18cbd
commit
0df71d2608
@ -770,7 +770,7 @@ function openvpn_client_export_find_port_forwards($targetip, $targetport, $targe
|
||||
$dest['proto'] = $natent['protocol'];
|
||||
|
||||
// Could be multiple ports... But we can only use one.
|
||||
$dports = is_port($natent['destination']['port']) ? array($natent['destination']['port']) : filter_expand_alias_array($natent['destination']['port']);
|
||||
$dports = is_port($natent['destination']['port']) ? array($natent['destination']['port']) : filter_core_get_port_alias($natent['destination']['port']);
|
||||
$dest['port'] = $dports[0];
|
||||
|
||||
// Could be network or address ...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user