mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-26 04:19:02 +00:00
Fix a bug that introduced while fixing a linter error
This commit is contained in:
parent
40122f1461
commit
df66231ed5
@ -76,7 +76,7 @@ func newTcpPacketSource(name, filename string, interfaceName string,
|
||||
logger.Log.Infof("Using AF_PACKET socket as the capture source")
|
||||
}
|
||||
|
||||
decoder := gopacket.DecodersByLayerName[string(layers.LinkTypeEthernet)]
|
||||
decoder := gopacket.DecodersByLayerName[layers.LinkTypeEthernet.String()]
|
||||
result.Handle.SetDecoder(decoder, behaviour.Lazy, true)
|
||||
|
||||
if behaviour.BpfFilter != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user