summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/Wizcommon.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm
index 5c14c545..088ba4c7 100644
--- a/common/Wizcommon.pm
+++ b/common/Wizcommon.pm
@@ -33,7 +33,8 @@ our @EXPORT = qw(check_started check_starts_on_boot test_host_domain);
my $net;
sub check_dhcp {
- $net->is_dhcp and return 'dhcp_warning';
+ my ($wiz) = @_;
+ $wiz->{net}->is_dhcp and return 'dhcp_warning';
}
sub new {