move sub out handle

master
Mailkov 2015-12-29 14:09:42 +00:00
parent a602c9c564
commit 544c4f0a62
1 changed files with 6 additions and 6 deletions

View File

@ -24,6 +24,12 @@ attribution github => ['seanheaton','Sean Heaton'],
zci answer_type => 'teredo';
zci is_cached => 1;
# Params: server, port, client
sub to_text {
return "Teredo Server IPv4: " . $_[0]->ip() . "\nNAT Public IPv4: " . $_[2]->ip()
. "\nClient Port: " . $_[1];
}
handle remainder => sub {
my @output = ();
@ -46,12 +52,6 @@ handle remainder => sub {
}
return;
# Params: server, port, client
sub to_text {
return "Teredo Server IPv4: " . $_[0]->ip() . "\nNAT Public IPv4: " . $_[2]->ip()
. "\nClient Port: " . $_[1];
}
# Params: server, port, client
#sub to_html {
#return "<div><span class=\"teredo__label text--secondary\">Teredo Server IPv4: </span><span class=\"text--primary\">" . $_[0]->ip()