File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/client/lib/client Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -176,16 +176,19 @@ async function determineEndpoint(
176
176
tlsEnabled : boolean ,
177
177
host : string ,
178
178
) : Promise < MovingEndpointType > {
179
-
180
179
const ip = isIP ( host )
181
180
? host
182
181
: ( await lookup ( host , { family : 0 } ) ) . address
183
182
184
183
const isPrivate = isPrivateIP ( ip ) ;
185
184
185
+ let result : MovingEndpointType
186
186
if ( tlsEnabled ) {
187
- return isPrivate ? "internal-fqdn" : "external-fqdn" ;
187
+ result = isPrivate ? "internal-fqdn" : "external-fqdn" ;
188
188
} else {
189
- return isPrivate ? "internal-ip" : "external-ip" ;
189
+ result = isPrivate ? "internal-ip" : "external-ip" ;
190
190
}
191
+
192
+ dbgMaintenance ( `Determine endpoint format: ${ result } ` )
193
+ return result ;
191
194
}
You can’t perform that action at this time.
0 commit comments