projects
/
profile
/
ivi
/
remotecontrol.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e77a1
)
Changing python search pattern to look for localhost as well.
23/1823/1
accepted/trunk/20120924.224956
submit/trunk/20120924.225223
author
Brian Jones
<brian.j.jones@intel.com>
Mon, 24 Sep 2012 22:51:13 +0000
(15:51 -0700)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/remotecontrol/remoteserver.py
b/remotecontrol/remoteserver.py
index
653a49f
..
6a9e728
100644
(file)
--- 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)