Permalink
Browse files

added port option to snif

  • Loading branch information...
1 parent 4f6bcd2 commit 5193796982fd04bfd14cb05a2ba7e2bdee9c1a44 @typester committed Dec 5, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 script/rtmp_dump.pl
View
@@ -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;
-

0 comments on commit 5193796

Please sign in to comment.