Skip to content

Commit

Permalink
Merge pull request #154 from negbie/master
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
negbie authored Feb 7, 2020
2 parents bf6bae1 + 1643e58 commit e215c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
8 changes: 2 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import (
"github.com/negbie/logp"
"github.com/sipcapture/heplify/config"
"github.com/sipcapture/heplify/sniffer"
//_ "github.com/mkevac/debugcharts"
)

const version = "heplify 1.54"
const version = "heplify 1.55"

func createFlags() {

Expand All @@ -30,7 +29,7 @@ func createFlags() {
std bool
sys bool
)

flag.StringVar(&ifaceConfig.Device, "i", "any", "Listen on interface")
flag.StringVar(&ifaceConfig.Type, "t", "pcap", "Capture types are [pcap, af_packet]")
flag.StringVar(&ifaceConfig.ReadFile, "rf", "", "Read pcap file")
Expand Down Expand Up @@ -96,9 +95,6 @@ func checkCritErr(err error) {

func main() {
createFlags()
/* go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}() */

err := logp.Init("heplify", config.Cfg.Logging)
checkCritErr(err)
Expand Down
7 changes: 0 additions & 7 deletions publish/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ type FileOutputer struct {
}

func (fo *FileOutputer) Output(msg []byte) {
/* jsonPkt, err := json.MarshalIndent(msg, "", " ")
if err != nil {
logp.Err("json %v", err)
return
}
logp.Info("%s", jsonPkt)
*/
h, err := DecodeHEP(msg)
if err == nil {
logp.Info("%s\n", h.String())
Expand Down

0 comments on commit e215c9e

Please sign in to comment.