Fix to always send ports disregard of the firewall

This commit is contained in:
Ilia Ross
2025-07-06 21:05:20 +03:00
parent c0f886b670
commit 0bcbcd94b8
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,6 @@ foreach $s (@sockets, [ undef, "*" ]) {
}
$stable .= &ui_columns_end();
if (&foreign_check("firewall")) {
print &ui_hidden("oldports", join(" ", @ports));
$stable .= &ui_checkbox("firewall", 1, $text{'bind_firewall'}, 1);
}
print &ui_table_row($text{'bind_sockets'}, $stable);
@ -74,6 +73,7 @@ print &ui_table_row($text{'bind_hostname'},
[ 0, &ui_textbox("hostname", $miniserv{"host"}, 25) ] ]));
print &ui_table_end();
print &ui_hidden("oldports", join(" ", @ports));
print &ui_form_end([ [ "save", $text{'save'} ] ]);
&ui_print_footer("", $text{'index_return'});

View File

@ -39,7 +39,6 @@ foreach my $s (@sockets, [ undef, "*" ]) {
}
$stable .= &ui_columns_end();
if (&foreign_check("firewall")) {
print &ui_hidden("oldports", join(" ", @ports));
$stable .= &ui_checkbox("firewall", 1, $text{'bind_firewall'}, 1);
}
print &ui_table_row($text{'bind_sockets'}, $stable);
@ -99,6 +98,7 @@ print &ui_table_row($text{'bind_maxlifetime'},
$text{'bind_maxlifetime_secs'});
print &ui_table_end();
print &ui_hidden("oldports", join(" ", @ports));
print &ui_form_end([ [ "save", $text{'save'} ] ]);
&ui_print_footer("", $text{'index_return'});