From 273bbf8c5d123a50133f39274927fab7b6729179 Mon Sep 17 00:00:00 2001 From: chriseyre2000 Date: Mon, 28 Aug 2017 00:04:45 +0100 Subject: [PATCH] Update plug.md (#1154) Replaced localhost with explicit 127.0.0.1 This works around a bug on some platforms --- en/lessons/specifics/plug.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/lessons/specifics/plug.md b/en/lessons/specifics/plug.md index a38308e8c0..7dd9e143cb 100644 --- a/en/lessons/specifics/plug.md +++ b/en/lessons/specifics/plug.md @@ -124,7 +124,7 @@ $ mix run --no-halt ``` Once everything is finished compiling, and `[info] Started app` appears, open a web -browser to `localhost:8080`. It should display: +browser to `127.0.0.1:8080`. It should display: ``` Hello World! @@ -168,9 +168,9 @@ end Start the server again, stopping the previous one if it's running (press `Ctrl+C` twice). -Now in a web browser, go to `localhost:8080`. +Now in a web browser, go to `127.0.0.1:8080`. It should output `Welcome`. -Then, go to `localhost:8080/waldo`, or any other path. +Then, go to `127.0.0.1:8080/waldo`, or any other path. It should output `Oops!` with a 404 response. ## Adding Another Plug