Skip to content

Commit

Permalink
client: default to port 443 for wss urls
Browse files Browse the repository at this point in the history
fixes issue openresty#21
  • Loading branch information
jprjr authored Dec 24, 2020
1 parent d565794 commit a56f08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/websocket/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function _M.connect(self, uri, opts)
-- ngx.say("port: ", port)

if not port then
port = 80
port = scheme == 'wss' and 443 or 80
end

if path == "" then
Expand Down

0 comments on commit a56f08d

Please sign in to comment.