Created
February 20, 2014 09:15
-
-
Save tom-a/9109772 to your computer and use it in GitHub Desktop.
アクセスしてきたクライアントがIPv4かIPv6か表示する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
あなたがお使いのIPアドレスは<!--#echo var="REMOTE_ADDR" -->です。 | |
<!--#set var="address" value="REMOTE_ADDR" --> | |
<!--#echo var="$address" --> | |
<!--#if expr="$address = /:/" --> | |
IPv6 | |
<!--#else --> | |
IPv4 | |
<!--#endif --> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment