Do not set IPV6 forwarding unless checkbox is ticked and a ip is defined.

This commit is contained in:
Scott Ullrich 2005-05-16 22:32:22 +00:00
parent 4ab34f15d3
commit 11d42e4d1a

View File

@ -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'])) {