Skip to content

Commit e215c9e

Browse files
authored
Merge pull request #154 from negbie/master
sync
2 parents bf6bae1 + 1643e58 commit e215c9e

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

main.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ import (
99
"github.com/negbie/logp"
1010
"github.com/sipcapture/heplify/config"
1111
"github.com/sipcapture/heplify/sniffer"
12-
//_ "github.com/mkevac/debugcharts"
1312
)
1413

15-
const version = "heplify 1.54"
14+
const version = "heplify 1.55"
1615

1716
func createFlags() {
1817

@@ -30,7 +29,7 @@ func createFlags() {
3029
std bool
3130
sys bool
3231
)
33-
32+
3433
flag.StringVar(&ifaceConfig.Device, "i", "any", "Listen on interface")
3534
flag.StringVar(&ifaceConfig.Type, "t", "pcap", "Capture types are [pcap, af_packet]")
3635
flag.StringVar(&ifaceConfig.ReadFile, "rf", "", "Read pcap file")
@@ -96,9 +95,6 @@ func checkCritErr(err error) {
9695

9796
func main() {
9897
createFlags()
99-
/* go func() {
100-
log.Println(http.ListenAndServe("localhost:6060", nil))
101-
}() */
10298

10399
err := logp.Init("heplify", config.Cfg.Logging)
104100
checkCritErr(err)

publish/file.go

-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ type FileOutputer struct {
88
}
99

1010
func (fo *FileOutputer) Output(msg []byte) {
11-
/* jsonPkt, err := json.MarshalIndent(msg, "", " ")
12-
if err != nil {
13-
logp.Err("json %v", err)
14-
return
15-
}
16-
logp.Info("%s", jsonPkt)
17-
*/
1811
h, err := DecodeHEP(msg)
1912
if err == nil {
2013
logp.Info("%s\n", h.String())

0 commit comments

Comments
 (0)