Skip to content

Commit 7761a83

Browse files
authored
optimize: localize bit.bor in clienthello.lua. (#380)
1 parent e71133a commit 7761a83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ngx/ssl/clienthello.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ base.allows_subsystem('http', 'stream')
77

88
local ffi = require "ffi"
99
local bit = require "bit"
10+
local bor = bit.bor
1011
local C = ffi.C
1112
local ffi_str = ffi.string
1213
local get_request = base.get_request
@@ -153,7 +154,7 @@ function _M.set_protocols(protocols)
153154
if not prot_map[v] then
154155
return nil, "invalid protocols failed"
155156
end
156-
prots = bit.bor(prots, prot_map[v])
157+
prots = bor(prots, prot_map[v])
157158
end
158159

159160
local rc = ngx_lua_ffi_ssl_set_protocols(r, prots, errmsg)

0 commit comments

Comments
 (0)