summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Misc.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Misc.pm')
-rwxr-xr-xlib/Vyatta/Misc.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index 6089361..77c6218 100755
--- a/lib/Vyatta/Misc.pm
+++ b/lib/Vyatta/Misc.pm
@@ -58,7 +58,7 @@ sub is_dhcp_enabled {
if ($outside_cli);
$config->setLevel( $intf->path() );
- foreach my $addr ( $config->returnOrigValues('address') ) {
+ foreach my $addr ( $config->returnOrigPlusComValues('address') ) {
return 1 if ( $addr && $addr eq "dhcp" );
}