Skip to content

Commit

Permalink
Fix docs for -dim
Browse files Browse the repository at this point in the history
The docs said Discard...by Seq, but the examples suggest this is by
Method instead.  The name of the option in the code is DiscardMethod,
so I updated the docs.

Signed-off-by: Richard Laager <rlaager@wiktel.com>
  • Loading branch information
rlaager committed Jan 30, 2024
1 parent 4008af7 commit 80b419e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ docker build --no-cache -t sipcapture/heplify:latest -f docker/heplify/Dockerfil
-di string
Discard uninteresting packets by any string
-dim string
Discard uninteresting SIP packets by CSeq [OPTIONS,NOTIFY]
Discard uninteresting SIP packets by Method [OPTIONS,NOTIFY]
-diip string
Discard uninteresting SIP packets by Source or Destination IP(s)
-disip string
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func createFlags() {
flag.BoolVar(&config.Cfg.SkipVerify, "skipverify", false, "skip certifcate validation")
flag.BoolVar(&config.Cfg.Dedup, "dd", false, "Deduplicate packets")
flag.StringVar(&config.Cfg.Discard, "di", "", "Discard uninteresting packets by any string")
flag.StringVar(&config.Cfg.DiscardMethod, "dim", "", "Discard uninteresting SIP packets by CSeq [OPTIONS,NOTIFY]")
flag.StringVar(&config.Cfg.DiscardMethod, "dim", "", "Discard uninteresting SIP packets by Method [OPTIONS,NOTIFY]")
flag.StringVar(&config.Cfg.DiscardIP, "diip", "", "Discard uninteresting SIP packets by Source or Destination IP(s)")
flag.StringVar(&config.Cfg.DiscardSrcIP, "disip", "", "Discard uninteresting SIP packets by Source IP(s)")
flag.StringVar(&config.Cfg.DiscardDstIP, "didip", "", "Discard uninteresting SIP packets by Destination IP(s)")
Expand Down

0 comments on commit 80b419e

Please sign in to comment.