From 62b1b095ad3bff3a3d606f15b0b3e882f1a89d32 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 Jul 2015 01:40:41 +0200 Subject: [PATCH] Handle IP addresses as machine names --- src/root/common.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/root/common.tt b/src/root/common.tt index ef3d793a..19e2462e 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -644,7 +644,7 @@ BLOCK createChart %] BLOCK renderMachineName; -machine ? stripSSHUser(machine).match('^([^\.]*)').0 : "localhost"; +machine ? stripSSHUser(machine).match('^(([^\.]|\.[0-9])*)').0 : "localhost"; END;