File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ const onSocketMsg = {
181181
182182let hostname = urlParts . hostname ;
183183let protocol = urlParts . protocol ;
184+ let port = urlParts . port ;
184185
185186// check ipv4 and ipv6 `all hostname`
186187if ( hostname === '0.0.0.0' || hostname === '::' ) {
@@ -190,6 +191,7 @@ if (hostname === '0.0.0.0' || hostname === '::') {
190191 // eslint-disable-next-line no-bitwise
191192 if ( self . location . hostname && ! ! ~ self . location . protocol . indexOf ( 'http' ) ) {
192193 hostname = self . location . hostname ;
194+ port = self . location . port ;
193195 }
194196}
195197
@@ -208,7 +210,7 @@ const socketUrl = url.format({
208210 protocol,
209211 auth : urlParts . auth ,
210212 hostname,
211- port : urlParts . port ,
213+ port,
212214 // If sockPath is provided it'll be passed in via the __resourceQuery as a
213215 // query param so it has to be parsed out of the querystring in order for the
214216 // client to open the socket to the correct location.
You can’t perform that action at this time.
0 commit comments