diff options
author | daurnimator <quae@daurnimator.com> | 2015-11-15 20:31:47 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2015-11-15 20:31:47 +1100 |
commit | c80559d64791e42f8fec9056343f4629720323e4 (patch) | |
tree | 4fce4e0221ee756faa20fe886932eb7f6512c4e5 | |
parent | 18cb0387fd063f1b2874c44dab11bbc319cc86ca (diff) | |
download | luaossl-c80559d64791e42f8fec9056343f4629720323e4.tar.gz luaossl-c80559d64791e42f8fec9056343f4629720323e4.tar.bz2 luaossl-c80559d64791e42f8fec9056343f4629720323e4.zip |
Fix not passing through first cipher argument in vararg form
-rw-r--r-- | src/openssl.ssl.context.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.ssl.context.lua b/src/openssl.ssl.context.lua index 2da84de..2098b54 100644 --- a/src/openssl.ssl.context.lua +++ b/src/openssl.ssl.context.lua @@ -5,7 +5,7 @@ local pack = table.pack or function(...) return { n = select("#", ...); ... } en -- Allow passing a vararg of ciphers, or an array local setCipherList; setCipherList = ctx.interpose("setCipherList", function (self, ciphers, ...) if (...) then - local ciphers_t = pack(...) + local ciphers_t = pack(ciphers, ...) ciphers = table.concat(ciphers_t, ":", 1, ciphers_t.n) elseif type(ciphers) == "table" then ciphers = table.concat(ciphers, ":") |