diff --git a/README.md b/README.md index 27d402d..e7f2eb4 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ def request(action, **params): def invoke(action, **params): requestJson = json.dumps(request(action, **params)).encode('utf-8') - response = json.load(urllib.request.urlopen(urllib.request.Request('http://localhost:8765', requestJson))) + response = json.load(urllib.request.urlopen(urllib.request.Request('http://127.0.0.1:8765', requestJson))) if len(response) != 2: raise Exception('response has an unexpected number of fields') if 'error' not in response: