[#1558] Use correct scheme to detect port. Thanks @golovnin for spotting it.
This commit is contained in:
parent
2380461861
commit
3db3a9a2bf
@ -119,7 +119,7 @@ public class WebSocketClientHandshaker13 extends WebSocketClientHandshaker {
|
|||||||
// check if the URI contained a port if not set the correct one depending on the schema.
|
// check if the URI contained a port if not set the correct one depending on the schema.
|
||||||
// See https://github.com/netty/netty/pull/1558
|
// See https://github.com/netty/netty/pull/1558
|
||||||
if (wsPort == -1) {
|
if (wsPort == -1) {
|
||||||
if ("https".equals(wsURL.getScheme())) {
|
if ("wss".equals(wsURL.getScheme())) {
|
||||||
wsPort = 443;
|
wsPort = 443;
|
||||||
} else {
|
} else {
|
||||||
wsPort = 80;
|
wsPort = 80;
|
||||||
|
Loading…
Reference in New Issue
Block a user