Skip to content

Commit f46180a

Browse files
committed
debug moving endpoint type
1 parent 25b258f commit f46180a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/client/lib/client/enterprise-maintenance-manager.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,19 @@ async function determineEndpoint(
176176
tlsEnabled: boolean,
177177
host: string,
178178
): Promise<MovingEndpointType> {
179-
180179
const ip = isIP(host)
181180
? host
182181
: (await lookup(host, {family: 0})).address
183182

184183
const isPrivate = isPrivateIP(ip);
185184

185+
let result: MovingEndpointType
186186
if (tlsEnabled) {
187-
return isPrivate ? "internal-fqdn" : "external-fqdn";
187+
result = isPrivate ? "internal-fqdn" : "external-fqdn";
188188
} else {
189-
return isPrivate ? "internal-ip" : "external-ip";
189+
result = isPrivate ? "internal-ip" : "external-ip";
190190
}
191+
192+
dbgMaintenance(`Determine endpoint format: ${result}`)
193+
return result;
191194
}

0 commit comments

Comments
 (0)