diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-01 03:13:52 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-01 03:13:52 +0100 |
commit | 64361b4894092d2e73742444c78d7f5deb4b172c (patch) | |
tree | 9bb9875b22330aa3c4b3b9f9ec2eb2a46cc44057 /util/ip.lua | |
parent | 45a9e749b3fad76466d7a4eecf21c72d5e892ff6 (diff) | |
download | prosody-64361b4894092d2e73742444c78d7f5deb4b172c.tar.gz prosody-64361b4894092d2e73742444c78d7f5deb4b172c.zip |
util.ip: Add CGNAT network range reserved in RFC 6598
Diffstat (limited to 'util/ip.lua')
-rw-r--r-- | util/ip.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/ip.lua b/util/ip.lua index 9575e499..9a77a8e1 100644 --- a/util/ip.lua +++ b/util/ip.lua @@ -207,11 +207,12 @@ end local rfc1918_8 = new_ip("10.0.0.0"); local rfc1918_12 = new_ip("172.16.0.0"); local rfc1918_16 = new_ip("192.168.0.0"); +local rfc6598 = new_ip("100.64.0.0"); function ip_methods:private() local private = self.scope ~= 0xE; if not private and self.proto == "IPv4" then - private = match(self, rfc1918_8, 8) or match(self, rfc1918_12, 12) or match(self, rfc1918_16); + private = match(self, rfc1918_8, 8) or match(self, rfc1918_12, 12) or match(self, rfc1918_16) or match(self, rfc6598, 10); end self.private = private; return private; |