Skip to content

Commit

Permalink
Fix typo (modifiers needs to passed properly).
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Suter <[email protected]>
  • Loading branch information
marksuter authored and hugelgupf committed Jan 9, 2025
1 parent b203261 commit 8abf581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dhcpv4/dhcpv4.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func New(modifiers ...Modifier) (*DHCPv4, error) {
if err != nil {
return nil, err
}
return newDHCPv4(xid, modifiers), nil
return newDHCPv4(xid, modifiers...), nil
}

// NewWithContext creates a new DHCPv4 structure and fill it up with default
Expand All @@ -158,7 +158,7 @@ func NewWithContext(ctx context.Context, modifiers ...Modifier) (*DHCPv4, error)
if err != nil {
return nil, err
}
return newDHCPv4(xid, modifiers), nil
return newDHCPv4(xid, modifiers...), nil
}

func newDHCPv4(xid TransactionID, modifiers ...Modifier) *DHCPv4 {
Expand Down

0 comments on commit 8abf581

Please sign in to comment.