web: Using connect address in auth_url

Due to only using the `options.listen` address in the creation of the
`auth_url` we aren't able to authenticate with an existing httpd instance
if the instance isn't the default value.
This commit is contained in:
Sebastian Martinez
2024-01-19 11:27:16 +01:00
committed by cloudhead
parent bd65b57503
commit 60efd13ff3
+1 -1
View File
@@ -166,7 +166,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
.query_pairs_mut()
.append_pair("pk", &session.public_key.to_string())
.append_pair("sig", &signature.to_string())
.append_pair("addr", &options.listen.to_string());
.append_pair("addr", &connect.to_string());
if options.open {
#[cfg(target_os = "macos")]