From 0777151cd2bf37e7a911660e0507e35fe4240b1f Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 9 Aug 2013 15:49:52 -0400 Subject: [PATCH] added the check for tokens back in and removed dev print statements --- utils/websockify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/websockify b/utils/websockify index 2a0c4157..4c68b2dc 100755 --- a/utils/websockify +++ b/utils/websockify @@ -207,6 +207,8 @@ Traffic Legend: # Extract the token parameter from url token = urlparse(path)[4] # 4 is the query from url + if not token: + raise self.EClose("Token not present") # target_cfg can be a single config file or directory of # config files @@ -221,7 +223,6 @@ Traffic Legend: if line and not line.startswith('#'): ftoken, target = line.split(': ') if ftoken == token: - print(target) return target.split(':') raise self.EClose("Token '%s' not found" % token)