summaryrefslogtreecommitdiffstats
path: root/proxy_wizard
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-10-18 14:06:46 +0000
committerThierry Vignaud <tv@mageia.org>2012-10-18 14:06:46 +0000
commit4c08d9f8bab5f6416230de744caa7eb3b968a1ea (patch)
tree32b351203d5fef761e42db359c7363afb52cf15f /proxy_wizard
parente33db6e1b6f0fcc3916d00656227c4275ad163bc (diff)
downloaddrakwizard-4c08d9f8bab5f6416230de744caa7eb3b968a1ea.tar
drakwizard-4c08d9f8bab5f6416230de744caa7eb3b968a1ea.tar.gz
drakwizard-4c08d9f8bab5f6416230de744caa7eb3b968a1ea.tar.bz2
drakwizard-4c08d9f8bab5f6416230de744caa7eb3b968a1ea.tar.xz
drakwizard-4c08d9f8bab5f6416230de744caa7eb3b968a1ea.zip
(testport) simplify through member()
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) {