client/use: The access token should set for the substiter endpoint
The substituter endpoint is not necessarily the same as the API endpoint.
This commit is contained in:
parent
c4f843d4ab
commit
0b528b5417
|
@ -50,7 +50,7 @@ pub async fn run(opts: Opts) -> Result<()> {
|
||||||
eprintln!("+ Access Token");
|
eprintln!("+ Access Token");
|
||||||
|
|
||||||
let mut nix_netrc = NixNetrc::load().await?;
|
let mut nix_netrc = NixNetrc::load().await?;
|
||||||
let host = Url::parse(&server.endpoint)?
|
let host = Url::parse(&substituter)?
|
||||||
.host()
|
.host()
|
||||||
.map(|h| h.to_string())
|
.map(|h| h.to_string())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue