Skip to content

Commit

Permalink
(legacy) regression firewall_nat_out_edit.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Aug 30, 2015
1 parent 2c87746 commit 8addbbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/www/firewall_nat_out_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ function formTranslateAddresses() {
$input_errors[] = gettext("Negating destination address of \"any\" is invalid.");
}

if (!is_ipaddr($pconfig['targetip']) && !is_subnet($pconfig['targetip']) && !is_alias($pconfig['targetip']) && empty($pconfig['nonat'])) {
if (!empty($pconfig['targetip']) && !is_ipaddr($pconfig['targetip']) && !is_subnet($pconfig['targetip']) && !is_alias($pconfig['targetip']) && empty($pconfig['nonat'])) {
$input_errors[] = gettext("A valid target IP address must be specified.");
}
/* Verify Pool Options */
if (!is_alias($pconfig['targetip']) && substr($pconfig['poolopts'], 0, 11) == "round-robin") {
if (!empty($pconfig['targetip']) && !is_alias($pconfig['targetip']) && substr($pconfig['poolopts'], 0, 11) == "round-robin") {
$input_errors[] = gettext("Only Round Robin pool options may be chosen when selecting an alias.");
}

Expand Down Expand Up @@ -558,7 +558,7 @@ function formTranslateAddresses() {
</td>
</tr>
<tr>
<td><a id="help_for_target" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Translation"); ?></td>
<td><a id="help_for_target" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Translation / target"); ?></td>
<td>
<table class="table table-condensed">
<tr>
Expand Down

0 comments on commit 8addbbe

Please sign in to comment.