projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e94db5
)
don't save 0.0.0.0 ip
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 9 Sep 2009 13:40:45 +0000
(13:40 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 9 Sep 2009 13:40:45 +0000
(13:40 +0000)
lib/PXElator/client.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/client.pm
b/lib/PXElator/client.pm
index
ae224ac
..
4a51714
100644
(file)
--- a/
lib/PXElator/client.pm
+++ b/
lib/PXElator/client.pm
@@
-113,7
+113,7
@@
sub next_ip($) {
sub save_ip_mac {
my ($ip,$mac) = @_;
$mac = format::mac($mac);
- return if $mac eq '00:00:00:00:00:00';
+ return if $mac eq '00:00:00:00:00:00'
|| $ip eq '0.0.0.0'
;
mkdir ip_path($ip) unless -e ip_path($ip);