Software / code / prosody
Comparison
util/ip.lua @ 5776:bd0ff8ae98a8
Remove all trailing whitespace
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Fri, 09 Aug 2013 17:48:21 +0200 |
| parent | 5608:0200945313c9 |
| child | 6926:d96b2aa7a11d |
comparison
equal
deleted
inserted
replaced
| 5775:a6c2b8933507 | 5776:bd0ff8ae98a8 |
|---|---|
| 90 local function v6scope(ip) | 90 local function v6scope(ip) |
| 91 -- Loopback: | 91 -- Loopback: |
| 92 if ip:match("^[0:]*1$") then | 92 if ip:match("^[0:]*1$") then |
| 93 return 0x2; | 93 return 0x2; |
| 94 -- Link-local unicast: | 94 -- Link-local unicast: |
| 95 elseif ip:match("^[Ff][Ee][89ABab]") then | 95 elseif ip:match("^[Ff][Ee][89ABab]") then |
| 96 return 0x2; | 96 return 0x2; |
| 97 -- Site-local unicast: | 97 -- Site-local unicast: |
| 98 elseif ip:match("^[Ff][Ee][CcDdEeFf]") then | 98 elseif ip:match("^[Ff][Ee][CcDdEeFf]") then |
| 99 return 0x5; | 99 return 0x5; |
| 100 -- Multicast: | 100 -- Multicast: |