From 9120130d289ae6fb51e870eb1c58cb411e4ec6b8 Mon Sep 17 00:00:00 2001 From: Matthew Nickson Date: Tue, 14 Feb 2023 12:53:54 +0000 Subject: [PATCH] Included port number for TCP name Signed-off-by: Matthew Nickson --- src/pages/EditMonitor.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 1221446fd..930335a7a 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -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":