File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function doCheckHost(){
77 var check_cdn = document . getElementById ( "check-cdn" ) . checked ;
88 var check_ip6 = document . getElementById ( "check-ip6" ) . checked ;
99
10- fetch ( `./api.php?host=${ in_host } &h=${ check_cdn ? "yes" : "no" } ` )
10+ fetch ( `./api.php?host=${ in_host } &h=${ check_cdn ? "yes" : "no" } &resolve= ${ check_ip6 ? "v6" : "v4" } ` )
1111 . then ( response => {
1212 if ( ! response . ok ) {
1313 throw new Error ( 'Network response was not ok' ) ;
@@ -26,7 +26,7 @@ function doCheckHost(){
2626 var ip4Display = document . createElement ( "li" ) ;
2727 ip4Display . appendChild ( ip4Text ) ;
2828 resList . appendChild ( ip4Display ) ;
29- if ( check_ip6 ) {
29+ if ( check_ip6 !== false ) {
3030 var ip6Addr = ( typeof data . resolv_addr . v6 != "undefined" ) ? data . resolv_addr . v6 : "감지되지 않음" ;
3131 var ip6Text = document . createTextNode ( `감지된 IPv6 주소: ${ ip6Addr } ` ) ;
3232 var ip6Display = document . createElement ( "li" ) ;
You can’t perform that action at this time.
0 commit comments