summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Jones <brian.j.jones@intel.com>2012-09-24 15:51:13 -0700
committerBrian Jones <brian.j.jones@intel.com>2012-09-24 15:51:13 -0700
commit32f2a92c2f0e1c0ab2d786b9549a41555b86748e (patch)
treed7225ef646486e0d0bc882a3ad25173b5d80cd3f
parent90e77a1c44d42f4dcb90057e806edf87738e0427 (diff)
downloadremotecontrol-32f2a92c2f0e1c0ab2d786b9549a41555b86748e.tar.gz
remotecontrol-32f2a92c2f0e1c0ab2d786b9549a41555b86748e.tar.bz2
remotecontrol-32f2a92c2f0e1c0ab2d786b9549a41555b86748e.zip
Changing python search pattern to look for localhost as well.submit/trunk/20120924.225223accepted/trunk/20120924.224956
Otherwise once localhost is used, it will never be able to change it.
-rw-r--r--remotecontrol/remoteserver.py2
1 files changed, 1 insertions, 1 deletions
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)