Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added port option to snif

  • Loading branch information...
commit 5193796982fd04bfd14cb05a2ba7e2bdee9c1a44 1 parent 4f6bcd2
@typester authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 script/rtmp_dump.pl
View
4 script/rtmp_dump.pl
@@ -12,7 +12,7 @@
GetOptions(
\my %option,
- qw/help/
+ qw/help port=i/
);
pod2usage(0) if $option{help};
@@ -46,6 +46,7 @@ sub log_other {
};
Sniffer::RTMP->new(
+ $option{port} ? (filter => "tcp port $option{port}") : (),
device => $dev,
callbacks => {
notify => \&log_method,
@@ -90,4 +91,3 @@ =head1 COPYRIGHT
=cut
1;
-
Please sign in to comment.
Something went wrong with that request. Please try again.