diff options
Diffstat (limited to 'dhcpv4/nclient4/client.go')
-rw-r--r-- | dhcpv4/nclient4/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/nclient4/client.go b/dhcpv4/nclient4/client.go index 8fedf4a..8d970ef 100644 --- a/dhcpv4/nclient4/client.go +++ b/dhcpv4/nclient4/client.go @@ -352,7 +352,7 @@ func WithLogger(newLogger Logger) ClientOpt { func WithUnicast(srcAddr *net.UDPAddr) ClientOpt { return func(c *Client) (err error) { if srcAddr == nil { - srcAddr = &net.UDPAddr{Port: ServerPort} + srcAddr = &net.UDPAddr{Port: ClientPort} } c.conn, err = net.ListenUDP("udp4", srcAddr) if err != nil { |