Skip to content

Commit 2f43219

Browse files
shiyanfsjanuary
authored andcommitted
fix for the issue 516. (#519)
1 parent cfe92c4 commit 2f43219

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

probes/http-outbound-probe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function formatURL(httpOptions) {
123123
} else {
124124
url += 'localhost';
125125
}
126-
if (httpOptions.port) {
126+
if (httpOptions.port && !url.includes(':' + httpOptions.port)) {
127127
url += ':' + httpOptions.port;
128128
}
129129
if (httpOptions.path) {

probes/https-outbound-probe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function formatURL(httpsOptions) {
128128
} else {
129129
url += 'localhost';
130130
}
131-
if (httpsOptions.port) {
131+
if (httpsOptions.port && !url.includes(':' + httpsOptions.port)) {
132132
url += ':' + httpsOptions.port;
133133
}
134134
if (httpsOptions.path) {

0 commit comments

Comments
 (0)