<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FJohnuniq%2Fip</id>
	<title>Module:Sandbox/Johnuniq/ip - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FJohnuniq%2Fip"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Johnuniq/ip&amp;action=history"/>
	<updated>2026-04-21T02:08:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Johnuniq/ip&amp;diff=145630&amp;oldid=prev</id>
		<title>imported&gt;Johnuniq: catch error from Module:IP</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Johnuniq/ip&amp;diff=145630&amp;oldid=prev"/>
		<updated>2018-06-21T01:46:17Z</updated>

		<summary type="html">&lt;p&gt;catch error from &lt;a href=&quot;/research/Module:IP&quot; title=&quot;Module:IP&quot;&gt;Module:IP&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Try catching error from [[Module:IP]] from merge proposal at&lt;br /&gt;
-- Wikipedia:Templates_for_discussion/Log/2018_June_19#Module:IP&lt;br /&gt;
-- See results on talk page.&lt;br /&gt;
&lt;br /&gt;
local IP = require(&amp;#039;Module:IP&amp;#039;)&lt;br /&gt;
local IPAddress = IP.IPAddress&lt;br /&gt;
&lt;br /&gt;
local function main(frame)&lt;br /&gt;
	local results = {}&lt;br /&gt;
	for i, ipstr in ipairs({&lt;br /&gt;
		&amp;#039;&amp;#039;,&lt;br /&gt;
		&amp;#039;junk&amp;#039;,&lt;br /&gt;
		&amp;#039;1.2.3.255&amp;#039;,&lt;br /&gt;
		&amp;#039;1.2.3.256&amp;#039;,&lt;br /&gt;
		&amp;#039;1:2:3:4:1FFF:ffff:ffff:ffff&amp;#039;,&lt;br /&gt;
		&amp;#039;1:2:3:4:1800::&amp;#039;,&lt;br /&gt;
		&amp;#039;0.0.0.0&amp;#039;,&lt;br /&gt;
		&amp;#039;0:0:0:0:0:0:0:0&amp;#039;,&lt;br /&gt;
		&amp;#039;1::ffff:ffff&amp;#039;,&lt;br /&gt;
		&amp;#039;1::fffff:ffff&amp;#039;,&lt;br /&gt;
		&amp;#039;ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff&amp;#039;&lt;br /&gt;
	}) do&lt;br /&gt;
		local success, ip = pcall(IPAddress.new, ipstr)&lt;br /&gt;
		table.insert(results,&lt;br /&gt;
				&amp;#039;*&amp;quot;&amp;#039; .. ipstr .. &amp;#039;&amp;quot; is &amp;#039; ..&lt;br /&gt;
				(success and (ip:isIPv4() and &amp;#039;IPv4&amp;#039; or &amp;#039;IPv6&amp;#039;) or &amp;#039;invalid&amp;#039;)&lt;br /&gt;
			)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(results, &amp;#039;\n&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return { main = main }&lt;/div&gt;</summary>
		<author><name>imported&gt;Johnuniq</name></author>
	</entry>
</feed>