aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* util.crand: Make it possible to use arc4random on Linux (needs libbsd)Kim Alvefur2017-12-032-1/+7
|
* util.crand: Use a small buffer on the stack for small pieces of random, ↵Kim Alvefur2017-12-031-1/+11
| | | | should be faster
* util.crand: Remove unneeded castKim Alvefur2017-12-031-1/+1
|
* util.crand: Silence signedness warningKim Alvefur2017-12-031-1/+1
|
* util.crand: Only keep return value of getrandom() as the others don't return ↵Kim Alvefur2017-12-021-14/+6
| | | | partial results
* util.crand: Try getrandom() again until buffer is filledKim Alvefur2017-12-021-5/+15
|
* net.websocket.frames: Ignore Lua 5.3-only fields [luacheck]Kim Alvefur2017-12-021-2/+2
|
* util.ip: Do equality checking by comparing packed representation to avoid ↵Kim Alvefur2017-12-011-1/+1
| | | | any variations
* Merge 0.10->trunkKim Alvefur2017-12-013-3/+6
|\
| * net.dns: Don't compress a single zero group in IPv6 addresses to match ↵Kim Alvefur2017-12-011-1/+1
| | | | | | | | behaviour of inet_ntop
| * util.signal: Fix loop (fixes #1047)Kim Alvefur2017-11-301-2/+2
| | | | | | | | | | A pre-commit version probably started with i = nsig and counted down, then an incomplete change to counting up was done
| * prosodyctl: Fix traceback with lfs < 1.6.2 and show warningMatthew Wild2017-11-301-0/+3
| |
* | util.ip: Add CGNAT network range reserved in RFC 6598Kim Alvefur2017-12-011-1/+2
| |
* | util.ip: Do exact match for longer bit counts than availableKim Alvefur2017-12-011-1/+1
| |
* | util.ip: Do CIDR matching by comparing all bits at once instead of using ↵Kim Alvefur2017-12-011-4/+13
| | | | | | | | O(n) function
* | util.ip: Cache return values of all methods in one placeKim Alvefur2017-12-011-1/+5
| |
* | util.ip: Instantiate various addresses used for comparisons onceKim Alvefur2017-12-011-45/+49
| |
* | util.ip: Simplify creation of IPv6-mapped IPv4 addressesKim Alvefur2017-12-011-14/+1
| |
* | util.ip: Add a method returning a normalized IP addressKim Alvefur2017-12-011-0/+4
| |
* | util.ip: Simplify bitstring methodKim Alvefur2017-12-011-18/+2
| |
* | util.ip: Make bit string function into a methodKim Alvefur2017-12-011-7/+9
| |
* | util.ip: Parse IP address using inet_ptonKim Alvefur2017-12-011-21/+21
| |
* | util.ip: Reflow module export tableKim Alvefur2017-12-011-2/+4
| |
* | util.ip: Reflow metatableKim Alvefur2017-12-011-3/+9
| |
* | net.dns: Use inet_ntop from util.net if availableKim Alvefur2017-11-291-0/+13
| |
* | util.net: Add bindings to inet_ntop and inet_ptonKim Alvefur2017-11-261-0/+63
| |
* | util.crand: Add comments about definesKim Alvefur2017-12-011-0/+2
| |
* | util.crand: Apply formatterKim Alvefur2017-12-011-0/+1
| |
* | util.crand: Reorder includes so system ones are firstKim Alvefur2017-12-011-3/+2
| |
* | util.crand: Always include stdlib to be sure __GLIBC_PREREQ is definedKim Alvefur2017-12-011-3/+3
| |
* | util.template: Use util.envload instead of loadstring which is deprecated in ↵Kim Alvefur2017-11-231-2/+2
| | | | | | | | Lua 5.2
* | util.format: Import unpack from table lib in Lua 5.2+Kim Alvefur2017-11-231-1/+1
| |
* | util.envload: Ignore "undefined variable" warning for loadstring [luacheck ↵Kim Alvefur2017-11-231-1/+1
| | | | | | | | with strict 5.2 or 5.3 checks]
* | Merge 0.10->trunkKim Alvefur2017-11-231-23/+12
|\|
| * util.signal: Use a static array to keep track of pending signals (fixes #1029)Kim Alvefur2017-11-141-23/+12
| |
* | spec/net.http.server: Add test for #1044Kim Alvefur2017-11-221-0/+12
| |
* | Merge 0.10->trunkKim Alvefur2017-11-221-1/+1
|\|
| * util.helpers: Handle missing priorities, happens due to wildcard magic in ↵Kim Alvefur2017-11-221-1/+1
| | | | | | | | net.http.server (fixes #1044)
* | Merge 0.10->trunkKim Alvefur2017-11-211-0/+2
|\|
| * mod_storage_sql: Add indices that include the with and when columns of archivesKim Alvefur2017-11-211-0/+2
| |
* | util.async: Fix thread check to work correctly in Lua 5.2Kim Alvefur2017-11-211-2/+2
| | | | | | | | | | coroutine.running() now returns the main thread and a boolean true if called from the main thread, as opposed to nil in 5.1
* | util.async: Factor out thread check into a functionKim Alvefur2017-11-211-8/+10
| |
* | Merge 0.10->trunkKim Alvefur2017-11-202-14/+35
|\|
| * certmanager: Set single curve conditioned on LuaSec advertising EC crypto ↵Kim Alvefur2017-11-201-1/+1
| | | | | | | | support
| * certmanager: Filter out curves not supported by LuaSecKim Alvefur2017-11-201-0/+12
| |
| * certmanager: Change table representing LuaSec capabilities to match ↵Kim Alvefur2017-11-201-13/+20
| | | | | | | | capabilities table exposed in LuaSec 0.7
| * mod_debug_sql: Declare itself as global moduleKim Alvefur2017-11-181-0/+2
| |
* | mod_storage_internal: Skip write if no items matched a deletion queryKim Alvefur2017-11-191-0/+3
| |
* | util.pubsub: Recreate itemstore if persist_items changes or resize it if ↵Kim Alvefur2017-11-091-7/+7
| | | | | | | | max_items changes
* | mod_pubsub: Allow itemstore to override item idsKim Alvefur2017-11-091-0/+3
| |