From 1d97134839efb676d5d1de91270ef69c0e51d48b Mon Sep 17 00:00:00 2001 From: snow flurry Date: Sun, 18 Aug 2024 21:05:53 -0700 Subject: [PATCH] nzrdhcp: don't worry about whether there's a relay --- nzrdhcp/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nzrdhcp/src/main.rs b/nzrdhcp/src/main.rs index e200cd1..1e96928 100644 --- a/nzrdhcp/src/main.rs +++ b/nzrdhcp/src/main.rs @@ -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 {