initial commit of file from CVS for smeserver-xt_geoip on Sat Sep 7 16:46:09 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 16:46:09 +10:00
parent 6a9aa6baf5
commit 23a0172ede
71 changed files with 10915 additions and 2 deletions

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
imaps,pop3s,sshd,ftp,sqpsmtpd

View File

@@ -0,0 +1,20 @@
{
my @addexclude = split(/,/,"imap,imaps,pop3,pop3s,pptpd,sshd,ftp,qpsmtpd,sqpsmtpd");
my $masq = $DB->get('masq') or return;
my @exclude = split(/,/, $masq->prop('XtServices') || '');
push @exclude, @addexclude;
# remove duplicates
undef %saw;
@exclude = grep(!$saw{$_}++, @exclude);
if ($#exclude > 0)
{
$masq->set_prop('XtServices', join(',', @exclude));
}
else
{
$masq->delete_prop('XtServices');
}
}