File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,13 @@ class QUICClient {
141
141
await crypto . ops . randomBytes ( scidBuffer ) ;
142
142
const scid = new QUICConnectionId ( scidBuffer ) ;
143
143
// Validating host and port types
144
- let [ host_ , udpType ] = await utils . resolveHost ( host , resolveHostname ) ;
144
+ const [ tmpHost , udpType ] = await utils . resolveHost ( host , resolveHostname ) ;
145
145
const port_ = utils . toPort ( port ) ;
146
146
// If the target host is in fact a zero IP, it cannot be used
147
147
// as a target host, so we need to resolve it to a non-zero IP
148
148
// in this case, 0.0.0.0 is resolved to 127.0.0.1 and :: and ::0 is
149
149
// resolved to ::1.
150
+ let host_ = tmpHost ;
150
151
host_ = utils . resolvesZeroIP ( host_ ) ;
151
152
let isSocketShared : boolean ;
152
153
if ( socket == null ) {
Original file line number Diff line number Diff line change @@ -396,7 +396,11 @@ class QUICSocket {
396
396
) ;
397
397
}
398
398
const host = params [ index ] as Host | Hostname ;
399
- let [ host_ , udpType ] = await utils . resolveHost ( host , this . resolveHostname ) ;
399
+ const [ tmpHost , udpType ] = await utils . resolveHost (
400
+ host ,
401
+ this . resolveHostname ,
402
+ ) ;
403
+ let host_ = tmpHost ;
400
404
host_ = utils . resolvesZeroIP ( host_ ) ;
401
405
host_ = utils . validateTarget (
402
406
this . _host ,
You can’t perform that action at this time.
0 commit comments