Skip to content

Commit

Permalink
added port option to snif
Browse files Browse the repository at this point in the history
  • Loading branch information
typester committed Dec 5, 2008
1 parent 4f6bcd2 commit 5193796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/rtmp_dump.pl
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


GetOptions( GetOptions(
\my %option, \my %option,
qw/help/ qw/help port=i/
); );
pod2usage(0) if $option{help}; pod2usage(0) if $option{help};


Expand Down Expand Up @@ -46,6 +46,7 @@ sub log_other {
}; };


Sniffer::RTMP->new( Sniffer::RTMP->new(
$option{port} ? (filter => "tcp port $option{port}") : (),
device => $dev, device => $dev,
callbacks => { callbacks => {
notify => \&log_method, notify => \&log_method,
Expand Down Expand Up @@ -90,4 +91,3 @@ =head1 COPYRIGHT
=cut =cut


1; 1;

0 comments on commit 5193796

Please sign in to comment.