diff --git a/client/src/command/use.rs b/client/src/command/use.rs index 0520943..db651b4 100644 --- a/client/src/command/use.rs +++ b/client/src/command/use.rs @@ -50,7 +50,7 @@ pub async fn run(opts: Opts) -> Result<()> { eprintln!("+ Access Token"); let mut nix_netrc = NixNetrc::load().await?; - let host = Url::parse(&server.endpoint)? + let host = Url::parse(&substituter)? .host() .map(|h| h.to_string()) .unwrap();