From b6c02b563b32dc82012126ccdd323d0ca15e2e1a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 14 Jul 2016 10:22:09 -0400 Subject: [PATCH] turn off host validation --- web/skins/classic/views/js/monitor.js.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/monitor.js.php b/web/skins/classic/views/js/monitor.js.php index 833b8f441..32a1bf2a4 100644 --- a/web/skins/classic/views/js/monitor.js.php +++ b/web/skins/classic/views/js/monitor.js.php @@ -85,8 +85,8 @@ function validateForm( form ) } else if ( form.elements['newMonitor[Type]'].value == 'Remote' ) { - if ( !form.elements['newMonitor[Host]'].value || !form.elements['newMonitor[Host]'].value.match( /^[0-9a-zA-Z_.:@-]+$/ ) ) - errors[errors.length] = ""; + //if ( !form.elements['newMonitor[Host]'].value || !form.elements['newMonitor[Host]'].value.match( /^[0-9a-zA-Z_.:@-]+$/ ) ) + //errors[errors.length] = ""; if ( form.elements['newMonitor[Port]'].value && !form.elements['newMonitor[Port]'].value.match( /^\d+$/ ) ) errors[errors.length] = ""; //if ( !form.elements['newMonitor[Path]'].value )