Skip to content

Commit

Permalink
fix: use https in availability check, if port=443
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmirr committed Feb 12, 2020
1 parent 2c90f58 commit ef242e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inspect/checks/availability.js
Expand Up @@ -10,7 +10,7 @@ class AvailabilityCheck extends Check {

async check(context, args) {
let ip = await this.connector.getContainerIp(context);
let address = `http://${ip}:${args.port}/${args.url === '/' ? '' : args.url}`;
let address = `${args.port == 443 ? 'https' : 'http'}://${ip}:${args.port}/${args.url === '/' ? '' : args.url}`;
let state = null;
if (args.setup) {
state = await this.connector.setup(context, args.setup);
Expand Down

0 comments on commit ef242e3

Please sign in to comment.