Skip to content

Commit

Permalink
Use self.ip for siaddr.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 23, 2023
1 parent 7ab8158 commit 180b2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edge-dhcp/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl<'a> ServerOptions<'a> {
MessageType::Offer,
None,
Some(yiaddr),
None,
Some(self.ip),
Some(request.giaddr),
opt_buf,
)
Expand Down Expand Up @@ -139,7 +139,7 @@ impl<'a> ServerOptions<'a> {
MessageType::Ack,
Some(request.ciaddr),
Some(yiaddr),
None, // Could also be this server's IP address.
Some(self.ip),
Some(request.giaddr),
opt_buf,
)
Expand Down

0 comments on commit 180b2b1

Please sign in to comment.