Changing python search pattern to look for localhost as well. 23/1823/1 accepted/trunk/20120924.224956 submit/trunk/20120924.225223
authorBrian Jones <brian.j.jones@intel.com>
Mon, 24 Sep 2012 22:51:13 +0000 (15:51 -0700)
committerBrian Jones <brian.j.jones@intel.com>
Mon, 24 Sep 2012 22:51:13 +0000 (15:51 -0700)
Otherwise once localhost is used, it will never be able to change
it.

remotecontrol/remoteserver.py

index 653a49f..6a9e728 100644 (file)
@@ -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)