From 32f2a92c2f0e1c0ab2d786b9549a41555b86748e Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Mon, 24 Sep 2012 15:51:13 -0700 Subject: [PATCH] Changing python search pattern to look for localhost as well. Otherwise once localhost is used, it will never be able to change it. --- remotecontrol/remoteserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remotecontrol/remoteserver.py b/remotecontrol/remoteserver.py index 653a49f..6a9e728 100644 --- a/remotecontrol/remoteserver.py +++ b/remotecontrol/remoteserver.py @@ -135,7 +135,7 @@ def start(): finput = open(filename, 'r') content = finput.read() - for match in re.findall( r'ws://[0-9]+(?:\.[0-9]+){3}:[0-9]+', content): + for match in re.findall( r'ws://[0-9|a-z|A-Z|.]+:[0-9]+', content): print 'Replacing existing websocket ip address', match, 'with new ip', ws_url content = content.replace(match, ws_url) -- 2.7.4