Skip to content

Commit

Permalink
Merge pull request #22 from negbie/master
Browse files Browse the repository at this point in the history
Remove root check
  • Loading branch information
negbie authored Jan 4, 2018
2 parents 54762b9 + 744979e commit fc64319
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,9 @@ func main() {
err := logp.Init("heplify", config.Cfg.Logging)
checkCritErr(err)

if os.Geteuid() != 0 {
fmt.Printf("\nYou might need sudo or be root!\n\n")
os.Exit(1)
}

capture := &sniffer.SnifferSetup{}
defer capture.Close()

err = capture.Init(false, config.Cfg.Mode, config.Cfg.Iface)
checkCritErr(err)

Expand Down

0 comments on commit fc64319

Please sign in to comment.