Add Squid 6.5 support [build]
https://forum.virtualmin.com/t/your-version-of-squid-is-not-supported-by-webmin-only-versions-from-1-1-to-3-4-are-supported-by-this-module/123561
This commit is contained in:
parent
1a39ba639f
commit
c9ee0d5a4d
@ -45,10 +45,10 @@ if ($ver =~ /version\s+(\S+)/i) {
|
||||
$ver = $1;
|
||||
}
|
||||
my $squid_version;
|
||||
if ($ver =~ /Version\s+([2-5]\.[0-9]+)/ ||
|
||||
if ($ver =~ /Version\s+([2-6]\.[0-9]+)/ ||
|
||||
$ver =~ /^(1\.1)\.\d+/ ||
|
||||
$ver =~ /^(1)\.NOVM/ ||
|
||||
$ver =~ /^([2-5]\.[0-9]+)/) {
|
||||
$ver =~ /^([2-6]\.[0-9]+)/) {
|
||||
# Save version number
|
||||
open(VERSION, ">$module_config_directory/version");
|
||||
print VERSION $1,"\n";
|
||||
@ -57,7 +57,7 @@ if ($ver =~ /Version\s+([2-5]\.[0-9]+)/ ||
|
||||
}
|
||||
else {
|
||||
&ui_print_header(undef, $text{'index_header'}, "", undef, 1, 1);
|
||||
print &text('index_msgnosupported2', "<tt>1.1</tt>", "<tt>3.4</tt>"),
|
||||
print &text('index_msgnosupported2', "<tt>1</tt>", "<tt>6</tt>"),
|
||||
"<p>\n";
|
||||
print &text('index_squidver', "$config{'squid_path'} -v"),"\n";
|
||||
print "<pre>$fullver</pre>\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user