Skip to content

Commit b6dff88

Browse files
committed
feat(socket) add no_sslv2, no_sslv3, and no_tlsv1 LuaSec options
1 parent ed32f9a commit b6dff88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/cassandra/socket.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ do
1414
local function flatten(v, buf)
1515
if type(v) == 'string' then
1616
buf[#buf+1] = v
17+
elseif type(v) == 'number' then
18+
buf[#buf+1] = tostring(v)
1719
elseif type(v) == 'table' then
1820
for i = 1, #v do
1921
flatten(v[i], buf)
@@ -61,7 +63,7 @@ do
6163
certificate = opts.cert,
6264
cafile = opts.cafile,
6365
verify = verify and 'peer' or 'none',
64-
options = 'all'
66+
options = { 'all', 'no_sslv2', 'no_sslv3', 'no_tlsv1' }
6567
}
6668

6769
local sock, err = ssl.wrap(self.sock, params)

0 commit comments

Comments
 (0)