From c96ee4b41d8597c67cec7b3aeca57c03cc7595bd Mon Sep 17 00:00:00 2001 From: John Billings Date: Wed, 21 Jan 2015 11:24:36 -0800 Subject: [PATCH] Accept periods in service names. --- hacheck/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hacheck/main.py b/hacheck/main.py index c934363..22a2ca2 100644 --- a/hacheck/main.py +++ b/hacheck/main.py @@ -30,10 +30,10 @@ def log_request(handler): def get_app(): return tornado.web.Application([ - (r'/http/([a-zA-Z0-9_-]+)/([0-9]+)/(.*)', handlers.HTTPServiceHandler), - (r'/tcp/([a-zA-Z0-9_-]+)/([0-9]+)/?(.*)', handlers.TCPServiceHandler), - (r'/mysql/([a-zA-Z0-9_-]+)/([0-9]+)/?(.*)', handlers.MySQLServiceHandler), - (r'/spool/([a-zA-Z0-9_-]+)/([0-9]+)/?(.*)', handlers.SpoolServiceHandler), + (r'/http/([.a-zA-Z0-9_-]+)/([0-9]+)/(.*)', handlers.HTTPServiceHandler), + (r'/tcp/([.a-zA-Z0-9_-]+)/([0-9]+)/?(.*)', handlers.TCPServiceHandler), + (r'/mysql/([.a-zA-Z0-9_-]+)/([0-9]+)/?(.*)', handlers.MySQLServiceHandler), + (r'/spool/([.a-zA-Z0-9_-]+)/([0-9]+)/?(.*)', handlers.SpoolServiceHandler), (r'/recent', handlers.ListRecentHandler), (r'/status/count', handlers.ServiceCountHandler), (r'/status', handlers.StatusHandler),