save mac address on renew
[pxelator] / lib / PXElator / dhcpd.pm
index 39d598f..e9cc2b7 100644 (file)
@@ -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 );