Add username/password to Hello message

This commit is contained in:
badaix 2025-02-06 21:11:38 +01:00 committed by Johannes Pohl
parent b566b42ee0
commit 080b7a809b
6 changed files with 40 additions and 4 deletions

View file

@ -368,6 +368,10 @@ int main(int argc, char** argv)
throw SnapException("Snapclient is built without wss support");
#endif
}
if (!uri.user.empty())
settings.server.username = uri.user;
if (!uri.password.empty())
settings.server.password = uri.password;
}
if (server_cert_opt->is_set())