File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,6 @@ const onSocketMsg = {
198
198
199
199
let hostname = urlParts . hostname ;
200
200
let protocol = urlParts . protocol ;
201
- let port = urlParts . port ;
202
201
203
202
// check ipv4 and ipv6 `all hostname`
204
203
if ( hostname === '0.0.0.0' || hostname === '::' ) {
@@ -208,7 +207,6 @@ if (hostname === '0.0.0.0' || hostname === '::') {
208
207
// eslint-disable-next-line no-bitwise
209
208
if ( self . location . hostname && ! ! ~ self . location . protocol . indexOf ( 'http' ) ) {
210
209
hostname = self . location . hostname ;
211
- port = self . location . port ;
212
210
}
213
211
}
214
212
@@ -228,8 +226,8 @@ const socketUrl = url.format({
228
226
hostname,
229
227
port :
230
228
urlParts . path == null || urlParts . path === '/'
231
- ? port
232
- : querystring . parse ( urlParts . path ) . sockPort || port ,
229
+ ? urlParts . port
230
+ : querystring . parse ( urlParts . path ) . sockPort || urlParts . port ,
233
231
// If sockPath is provided it'll be passed in via the __resourceQuery as a
234
232
// query param so it has to be parsed out of the querystring in order for the
235
233
// client to open the socket to the correct location.
You can’t perform that action at this time.
0 commit comments