Skip to content

Commit

Permalink
Merge pull request #281 from Zentyal/jag/squid-network-depend
Browse files Browse the repository at this point in the history
Guard against previous version of squid without authenticationMode metho...
  • Loading branch information
jacalvo committed Apr 12, 2013
2 parents f978a6b + aab6c39 commit df01981
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 df01981

Please sign in to comment.