From: Dobrica Pavlinusic Date: Fri, 28 Aug 2009 19:22:24 +0000 (+0000) Subject: save mac address on renew X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=e15d064bf0f4242fc80575db35b84531bb19fa57;p=pxelator save mac address on renew --- diff --git a/lib/PXElator/dhcpd.pm b/lib/PXElator/dhcpd.pm index 39d598f..e9cc2b7 100644 --- a/lib/PXElator/dhcpd.pm +++ b/lib/PXElator/dhcpd.pm @@ -54,6 +54,7 @@ sub client_mac_ip { if ( $ip = client::ip_from_mac( $mac ) ) { print "RENEW $mac $ip\n"; + client::save_ip_mac( $ip, $mac ); return $ip; } elsif ( in_our_range( $request_ip ) ) { $ip = client::next_ip( $mac );