Skip to content

Commit

Permalink
Guard against previous version of squid without authenticationMode me…
Browse files Browse the repository at this point in the history
…thod
  • Loading branch information
javierag committed Apr 12, 2013
1 parent f978a6b commit aab6c39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main/network/ChangeLog
@@ -1,3 +1,6 @@
HEAD
+ Guard against previous version of squid without
authenticationMode method
3.0.4
+ Improve addition of localhost as primary resolver when DNS module is
enabled.
Expand Down
2 changes: 1 addition & 1 deletion main/network/src/EBox/Model/DNSResolver.pm
Expand Up @@ -150,7 +150,7 @@ sub syncRows
# as primary resolver instead localhost
if (EBox::Global->modExists('squid')) {
my $squid = EBox::Global->modInstance('squid');
if ($squid->isEnabled()) {
if ($squid->isEnabled() and $squid->can('authenticationMode')) {
my $mode = $squid->authenticationMode();
if ($mode eq $squid->AUTH_MODE_EXTERNAL_AD()) {
$add = 0;
Expand Down

0 comments on commit aab6c39

Please sign in to comment.