File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,6 @@ const onSocketMsg = {
198198
199199let hostname = urlParts . hostname ;
200200let protocol = urlParts . protocol ;
201- let port = urlParts . port ;
202201
203202// check ipv4 and ipv6 `all hostname`
204203if ( hostname === '0.0.0.0' || hostname === '::' ) {
@@ -208,7 +207,6 @@ if (hostname === '0.0.0.0' || hostname === '::') {
208207 // eslint-disable-next-line no-bitwise
209208 if ( self . location . hostname && ! ! ~ self . location . protocol . indexOf ( 'http' ) ) {
210209 hostname = self . location . hostname ;
211- port = self . location . port ;
212210 }
213211}
214212
@@ -228,8 +226,8 @@ const socketUrl = url.format({
228226 hostname,
229227 port :
230228 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 ,
233231 // If sockPath is provided it'll be passed in via the __resourceQuery as a
234232 // query param so it has to be parsed out of the querystring in order for the
235233 // client to open the socket to the correct location.
You can’t perform that action at this time.
0 commit comments