Included port number for TCP name

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2023-02-14 12:53:54 +00:00
parent a7e3ad0659
commit 9120130d28
No known key found for this signature in database
GPG key ID: BF229DCFD4748E05

View file

@ -846,6 +846,7 @@ message HealthCheckResponse {
if (
this.monitor.name === this.monitor.url
|| this.monitor.name === this.monitor.hostname
|| this.monitor.name === `${this.monitor.hostname}:${this.monitor.port}`
|| this.monitor.name === this.monitor.docker_container
) {
this.monitor.name = "";
@ -904,6 +905,9 @@ message HealthCheckResponse {
this.monitor.name = this.monitor.name || this.monitor.url;
break;
case "port":
// Use given name or hostname:port
this.monitor.name = this.monitor.name || `${this.monitor.hostname}:${this.monitor.port}`;
break;
case "ping":
case "dns":
case "steam":