Skip to content

Commit

Permalink
Merge pull request #27 from hengyoush/feature/netanalysis
Browse files Browse the repository at this point in the history
[Fix] when parse kernel version failed, fallback to compatible mode
  • Loading branch information
hengyoush authored Sep 9, 2024
2 parents 8e6ca3e + 586d026 commit fc1ea31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,6 @@ func EnabledXdp() bool {

func NeedsRunningInCompatibleMode() bool {
kernel58, _ := version.NewVersion("5.8")
return viper.GetBool("compatible") || GetKernelVersion().LessThan(kernel58)
curKernelVersion := GetKernelVersion()
return viper.GetBool("compatible") || curKernelVersion == nil || curKernelVersion.LessThan(kernel58)
}
Binary file modified docs/kyanos-demo-1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fc1ea31

Please sign in to comment.