From 803d36f0f61fb13e9ff4920f9fb82a98c17f4735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 7 Feb 2023 14:48:56 +0100 Subject: [PATCH] cli: Use localhost for rad web MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since sessionStorage and localStorage use protocol + host + port as scope, we want to align this between the CLI and radicle-interface. Using localhost has other benefits as well, because browsers treat it differently when doing requests from the deployed app which is being served via https. Signed-off-by: Rūdolfs Ošiņš --- radicle-cli/src/commands/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-cli/src/commands/web.rs b/radicle-cli/src/commands/web.rs index 5776d62c..351663ff 100644 --- a/radicle-cli/src/commands/web.rs +++ b/radicle-cli/src/commands/web.rs @@ -70,7 +70,7 @@ impl Args for Options { Options { verbose, host: host.unwrap_or(String::from("0.0.0.0:8080")), - web: web.unwrap_or(String::from("0.0.0.0:3000")), + web: web.unwrap_or(String::from("localhost:3000")), }, vec![], ))