cli: Use localhost for rad web

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ņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš 2023-02-07 14:48:56 +01:00 committed by Alexis Sellier
parent 1128842457
commit 803d36f0f6
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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![],
))