mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 08:25:57 +00:00
Included port number for TCP name
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
a7e3ad0659
commit
9120130d28
1 changed files with 4 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Reference in a new issue