* Wed Apr 09 2025 Brian Read <brianr@koozali.org> 11.0.0-75.sme

- Move review configuration to behind login [SME: 12984]
- Fix crash in port forwarding [SME: 12985]
This commit is contained in:
Brian Read 2025-04-09 10:43:14 +01:00
parent aad1a458f4
commit cffbe53fb4
4 changed files with 13 additions and 9 deletions

3
clog Normal file
View File

@ -0,0 +1,3 @@
* Wed Apr 09 2025 Brian Read <brianr@koozali.org> 11.0.0-75.sme
- Move review configuration to behind login [SME: 12984]
- Fix crash in port forwarding [SME: 12985]

View File

@ -215,6 +215,7 @@ sub add_portforward {
sub get_destination_host { sub get_destination_host {
my $q = shift; my $q = shift;
$cdb = esmith::ConfigDB->open || die "Can't open configuration database: $!\n";
my $dhost = $q->param("dhost"); my $dhost = $q->param("dhost");
my $localip = $cdb->get_prop('InternalInterface', 'IPAddress'); my $localip = $cdb->get_prop('InternalInterface', 'IPAddress');
my $external_ip = $cdb->get_prop('ExternalInterface', 'IPAddress') || $localip; my $external_ip = $cdb->get_prop('ExternalInterface', 'IPAddress') || $localip;
@ -361,6 +362,7 @@ sub isValidPort() {
sub validate_destination_host { sub validate_destination_host {
my $c = shift; my $c = shift;
$cdb = esmith::ConfigDB->open || die "Can't open configuration database: $!\n";
my $dhost = $c->param('dhost'); my $dhost = $c->param('dhost');
$dhost =~ s/^\s+|\s+$//g; $dhost =~ s/^\s+|\s+$//g;
my $localip = $cdb->get_prop('InternalInterface', 'IPAddress'); my $localip = $cdb->get_prop('InternalInterface', 'IPAddress');

View File

@ -1,16 +1,11 @@
package SrvMngr::Controller::Review; package SrvMngr::Controller::Review;
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# heading : Support # heading : Investigation
# description : Review configuration # description : Review configuration
# navigation : 000 500 # navigation : 6000 6800
# menu : N
# routes : end # routes : end
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# heading-o : Configuration
# description-o : Review configuration
# navigation-o : 6000 6800
#----------------------------------------------------------------------
use strict; use strict;
use warnings; use warnings;
use Mojo::Base 'Mojolicious::Controller'; use Mojo::Base 'Mojolicious::Controller';
@ -313,4 +308,4 @@ sub get_public_ip_address
} }
1; 1;

View File

@ -2,7 +2,7 @@ Summary: Sme server navigation module : manager 2
%define name smeserver-manager %define name smeserver-manager
Name: %{name} Name: %{name}
%define version 11.0.0 %define version 11.0.0
%define release 74 %define release 75
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
@ -143,6 +143,10 @@ true
%defattr(-,root,root) %defattr(-,root,root)
%changelog %changelog
* Wed Apr 09 2025 Brian Read <brianr@koozali.org> 11.0.0-75.sme
- Move review configuration to behind login [SME: 12984]
- Fix crash in port forwarding [SME: 12985]
* Wed Mar 26 2025 Brian Read <brianr@koozali.org> 11.0.0-74.sme * Wed Mar 26 2025 Brian Read <brianr@koozali.org> 11.0.0-74.sme
- Fix error message and success message format in Local Networking panel [SME: 12969] - Fix error message and success message format in Local Networking panel [SME: 12969]