nzrdhcp: don't worry about whether there's a relay

This commit is contained in:
snow flurry 2024-08-18 21:05:53 -07:00
parent 459682d182
commit 1d97134839

View file

@ -125,11 +125,7 @@ async fn handle_message(ctx: &Context, from: SocketAddr, msg: &Message) {
{
let opts = response.opts_mut();
let giaddr = if msg.giaddr().is_unspecified() {
todo!("no relay??")
} else {
msg.giaddr()
};
let giaddr = msg.giaddr();
opts.insert(DhcpOption::ServerIdentifier(giaddr));
if let Some(time) = lease_time {