Minor fixes

This commit is contained in:
junderw
2023-10-30 20:13:21 -07:00
parent 448aa0483a
commit e8d62af6c3
4 changed files with 5 additions and 31 deletions

View File

@@ -8,6 +8,7 @@ fn main() {
server::Server::serve(
UdpSocket::bind("0.0.0.0:67").unwrap(),
Ipv4Addr::new(0, 0, 0, 0),
Ipv4Addr::new(0, 0, 0, 0),
MyServer {},
);
}
@@ -24,7 +25,7 @@ impl server::Handler for MyServer {
};
println!(
"{}\t{}\t{}\tOnline",
time::OffsetDateTime::now_local().format("%Y-%m-%dT%H:%M:%S"),
time::OffsetDateTime::try_now_local().unwrap().format("%Y-%m-%dT%H:%M:%S"),
chaddr(&in_packet.chaddr),
Ipv4Addr::from(req_ip)
);