We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24af0ba commit 99d00c9Copy full SHA for 99d00c9
1 file changed
lib/models/redis/hosts.js
@@ -98,7 +98,7 @@ Hosts.prototype.upsertHostForContainerPort =
98
var actualPort = container.ports[containerPort][0].HostPort;
99
var parsedDockerHost = url.parse(container.dockerHost);
100
var backendUrl = url.format({
101
- protocol: (containerPort.toString() === '443') ? 'https:' : 'http:',
+ protocol: /^443\/.+/.test(containerPort) ? 'https:' : 'http:',
102
slashes: true,
103
hostname: parsedDockerHost.hostname,
104
port: actualPort
0 commit comments