Software / code / prosody
Comparison
util/ip.lua @ 8429:b3562a1b1caa
util.ip: Reflow module export table
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 01 Dec 2017 01:55:40 +0100 |
| parent | 8428:ca44e462322c |
| child | 8430:a58d560aa8d5 |
comparison
equal
deleted
inserted
replaced
| 8428:ca44e462322c | 8429:b3562a1b1caa |
|---|---|
| 248 common_bits = common_bits - 96; -- v6 mapped addresses always share these bits | 248 common_bits = common_bits - 96; -- v6 mapped addresses always share these bits |
| 249 end | 249 end |
| 250 return common_bits >= (bits or 128); | 250 return common_bits >= (bits or 128); |
| 251 end | 251 end |
| 252 | 252 |
| 253 return {new_ip = new_ip, | 253 return { |
| 254 new_ip = new_ip, | |
| 254 commonPrefixLength = commonPrefixLength, | 255 commonPrefixLength = commonPrefixLength, |
| 255 parse_cidr = parse_cidr, | 256 parse_cidr = parse_cidr, |
| 256 match=match}; | 257 match = match, |
| 258 }; |