nzrdhcp: don't worry about whether there's a relay
This commit is contained in:
parent
459682d182
commit
1d97134839
|
@ -125,11 +125,7 @@ async fn handle_message(ctx: &Context, from: SocketAddr, msg: &Message) {
|
||||||
|
|
||||||
{
|
{
|
||||||
let opts = response.opts_mut();
|
let opts = response.opts_mut();
|
||||||
let giaddr = if msg.giaddr().is_unspecified() {
|
let giaddr = msg.giaddr();
|
||||||
todo!("no relay??")
|
|
||||||
} else {
|
|
||||||
msg.giaddr()
|
|
||||||
};
|
|
||||||
|
|
||||||
opts.insert(DhcpOption::ServerIdentifier(giaddr));
|
opts.insert(DhcpOption::ServerIdentifier(giaddr));
|
||||||
if let Some(time) = lease_time {
|
if let Some(time) = lease_time {
|
||||||
|
|
Loading…
Reference in a new issue