Skip to content

Commit

Permalink
afpacket: fix NewPacketSource params GOOS!=linux (#120)
Browse files Browse the repository at this point in the history
fix NewPacketSource params GOOS!=linux
  • Loading branch information
MrGossett committed Sep 9, 2022
1 parent 045444e commit 56457bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/packet/afpacket/readwriter_other.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

package afpacket
Expand All @@ -16,7 +17,7 @@ type Source struct{}
// Assert that AfPacketSource conforms to the packet.ReadWriter interface
var _ packet.ReadWriter = (*Source)(nil)

func NewPacketSource(iface string) (*Source, error) {
func NewPacketSource(iface string, vpnMode bool) (*Source, error) {
return nil, ErrOS
}

Expand Down

0 comments on commit 56457bf

Please sign in to comment.