mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not set IPV6 forwarding unless checkbox is ticked and a ip is defined.
This commit is contained in:
parent
4ab34f15d3
commit
11d42e4d1a
@ -896,9 +896,8 @@ function filter_nat_rules_generate() {
|
||||
}
|
||||
|
||||
/* DIAG: add ipv6 NAT, if requested */
|
||||
if (isset($config['diag']['ipv6nat']['enable'])) {
|
||||
$natrules .= "rdr on $wanif proto ipv6 from any to any port 0 -> " .
|
||||
"{$config['diag']['ipv6nat']['ipaddr']}\n";
|
||||
if (isset($config['diag']['ipv6nat']['enable']) and $config['diag']['ipv6nat']['ipaddr'] <> "") {
|
||||
$natrules .= "rdr on $wanif proto ipv6 from any to any port 0 -> " . "{$config['diag']['ipv6nat']['ipaddr']}\n";
|
||||
}
|
||||
|
||||
if (isset($config['nat']['rule'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user