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 09:21:51 +01:00 committed by cloudhead
parent ebdaf0edd9
commit c4afd897f9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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")]