Skip to content

Instantly share code, notes, and snippets.

@tom-a
Created February 20, 2014 09:15
Show Gist options
  • Save tom-a/9109772 to your computer and use it in GitHub Desktop.
Save tom-a/9109772 to your computer and use it in GitHub Desktop.
アクセスしてきたクライアントがIPv4かIPv6か表示する。
<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