Skip to content

Commit 8abf581

Browse files
marksuterhugelgupf
authored andcommitted
Fix typo (modifiers needs to passed properly).
Signed-off-by: Mark Suter <[email protected]>
1 parent b203261 commit 8abf581

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dhcpv4/dhcpv4.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func New(modifiers ...Modifier) (*DHCPv4, error) {
146146
if err != nil {
147147
return nil, err
148148
}
149-
return newDHCPv4(xid, modifiers), nil
149+
return newDHCPv4(xid, modifiers...), nil
150150
}
151151

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

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

0 commit comments

Comments
 (0)