projects
/
pxelator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use $server_ip as base for IP class to hand out
[pxelator]
/
bin
/
dhcpd.pl
diff --git
a/bin/dhcpd.pl
b/bin/dhcpd.pl
index
9ec47c2
..
5fdb20b
100755
(executable)
--- a/
bin/dhcpd.pl
+++ b/
bin/dhcpd.pl
@@
-38,7
+38,8
@@
sub client_ip {
my $ip = $_mac2ip->{$mac};
return $ip if $ip;
- $ip = "10.0.0.$_ip";
+ $ip = $server_ip;
+ $ip =~ s{\.\d+$}{.$_ip};
$_mac2ip->{$mac} = $ip;
$_ip++;