Otherwise once localhost is used, it will never be able to change
it.
finput = open(filename, 'r')
content = finput.read()
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)
print 'Replacing existing websocket ip address', match, 'with new ip', ws_url
content = content.replace(match, ws_url)