File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ http {
5959 return 200 $ipdb_country_name;
6060 }
6161
62+ location /ipv6/country/ {
63+ return 200 null$ipdb_country_name;
64+ }
65+
6266 location /region/ {
6367 return 200 $ipdb_region_name;
6468 }
7680
7781EOF
7882
79- $t -> try_run(' no ipdb' )-> plan(7 );
83+ $t -> try_run(' no ipdb' )-> plan(8 );
8084
8185# ##############################################################################
8286like(http(<<EOF ), qr / testipdb/ , ' ipdb test' );
@@ -94,6 +98,14 @@ X-Forwarded-For: 36.102.4.81,192.168.0.1
9498EOF
9599
96100
101+ like(http(<<EOF ), qr / null$ / , ' ipdb country' );
102+ GET /ipv6/country/ HTTP/1.0
103+ Host: localhost
104+ X-Forwarded-For: a80::7cfc:c767:aded:c04e
105+
106+ EOF
107+
108+
97109like(http(<<EOF ), qr / 局域网/ , ' ipdb country proxy' );
98110GET /country/ HTTP/1.0
99111Host: localhost
You can’t perform that action at this time.
0 commit comments