summaryrefslogtreecommitdiffstats
path: root/proxy_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'proxy_wizard')
-rwxr-xr-xproxy_wizard/Squid.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_wizard/Squid.pm b/proxy_wizard/Squid.pm
index f6bfa84d..ebcd2dfc 100755
--- a/proxy_wizard/Squid.pm
+++ b/proxy_wizard/Squid.pm
@@ -206,7 +206,7 @@ sub network_mask {
}
sub testport {
- if ($o->{var}{wiz_squid_port} == 3128 || $o->{var}{wiz_squid_port} == 8080) {
+ if (member($o->{var}{wiz_squid_port}, qw(3128 8080))) {
return '';
}
elsif ($o->{var}{wiz_squid_port} <= 1024 || $o->{var}{wiz_squid_port} >= 65536) {