2013-10-14 09:03:14 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'teredo';
|
2014-09-27 06:42:57 -07:00
|
|
|
zci is_cached => 1;
|
2013-10-14 09:03:14 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[
|
|
|
|
'DDG::Goodie::Teredo'
|
|
|
|
],
|
|
|
|
|
|
|
|
# Sample queries
|
|
|
|
'teredo 2001:0000:4136:e378:8000:63bf:3fff:fdd2' =>
|
2014-07-01 17:51:01 -07:00
|
|
|
test_zci("Teredo Server IPv4: 65.54.227.120\nNAT Public IPv4: 192.0.2.45\nClient Port: 40000", html => qr/.*/),
|
2014-10-28 11:36:15 -07:00
|
|
|
|
2013-10-14 09:03:14 -07:00
|
|
|
'teredo 2001:0000:4136:E378:8000:EC77:7C94:FFFE' =>
|
2014-07-01 17:51:01 -07:00
|
|
|
test_zci("Teredo Server IPv4: 65.54.227.120\nNAT Public IPv4: 131.107.0.1\nClient Port: 5000", html => qr/.*/),
|
2013-10-14 09:03:14 -07:00
|
|
|
|
|
|
|
'teredo 2001::CE49:7601:E866:EFFF:62C3:FFFE' =>
|
2014-07-01 17:51:01 -07:00
|
|
|
test_zci("Teredo Server IPv4: 206.73.118.1\nNAT Public IPv4: 157.60.0.1\nClient Port: 4096", html => qr/.*/)
|
2013-10-14 09:03:14 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
done_testing;
|