Diff

util/ip.lua @ 11650:a227bc35771e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 03 Jul 2021 17:28:07 +0200
parent 10593:079b31c8dbf2
parent 11649:aa119de5f6c7
child 12355:a0ff5c438e9d
line wrap: on
line diff
--- a/util/ip.lua	Sat Jul 03 04:35:29 2021 +0200
+++ b/util/ip.lua	Sat Jul 03 17:28:07 2021 +0200
@@ -106,7 +106,7 @@
 local function v4scope(ip)
 	if match(ip, loopback4, 8) then
 		return 0x2;
-	elseif match(ip, linklocal4) then
+	elseif match(ip, linklocal4, 16) then
 		return 0x2;
 	else -- Global unicast
 		return 0xE;