ColdFusion 9.0 Resources |
IsIPv6DescriptionDetermines whether the host supports IPv6. ReturnsTrue if the host supports IPv6. CategorySyntaxIsIPv6() IsIPv6(hostname) See alsoHistoryColdFusion 9: Added this function UsageWhen you use this function to verify if the remote host supports IPv6, pass the hostname and not the IP address. This function applies only if the server that places the request is IPv6-enabled. ExampleThe following example checks whether the localhost supports IPv6: <cfset hostname="localhost"> <cfset test=IsIPv6()> <cfif test> <cfoutput>localhost supports IPv6</cfoutput> </cfif> The following example checks whether the remote host supports IPv6: <cfset hostname="remote hostname"> <cfset test=IsIPv6(hostname)> <cfif test> <cfoutput>#hostname# supports IPv6</cfoutput> </cfif> |