diff options
Diffstat (limited to 'dhcpv4/client4/client.go')
-rw-r--r-- | dhcpv4/client4/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/client4/client.go b/dhcpv4/client4/client.go index 5c5c18d..5dab176 100644 --- a/dhcpv4/client4/client.go +++ b/dhcpv4/client4/client.go @@ -314,7 +314,7 @@ func (c *Client) SendReceive(sendFd, recvFd int, packet *dhcpv4.DHCPv4, messageT } dstPort := int(binary.BigEndian.Uint16(udph[2:4])) expectedDstPort := dhcpv4.ClientPort - if c.RemoteAddr != nil { + if c.LocalAddr != nil { expectedDstPort = c.LocalAddr.(*net.UDPAddr).Port } if dstPort != expectedDstPort { |