File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ const onSocketMsg = {
181
181
182
182
let hostname = urlParts . hostname ;
183
183
let protocol = urlParts . protocol ;
184
+ let port = urlParts . port ;
184
185
185
186
// check ipv4 and ipv6 `all hostname`
186
187
if ( hostname === '0.0.0.0' || hostname === '::' ) {
@@ -190,6 +191,7 @@ if (hostname === '0.0.0.0' || hostname === '::') {
190
191
// eslint-disable-next-line no-bitwise
191
192
if ( self . location . hostname && ! ! ~ self . location . protocol . indexOf ( 'http' ) ) {
192
193
hostname = self . location . hostname ;
194
+ port = self . location . port ;
193
195
}
194
196
}
195
197
@@ -208,7 +210,7 @@ const socketUrl = url.format({
208
210
protocol,
209
211
auth : urlParts . auth ,
210
212
hostname,
211
- port : urlParts . port ,
213
+ port,
212
214
// If sockPath is provided it'll be passed in via the __resourceQuery as a
213
215
// query param so it has to be parsed out of the querystring in order for the
214
216
// client to open the socket to the correct location.
You can’t perform that action at this time.
0 commit comments