fix license autocreation

This commit is contained in:
Martin Michelsen
2023-10-28 17:03:45 -07:00
parent c496abc2bf
commit 293df2b73a
2 changed files with 37 additions and 2 deletions
+1
View File
@@ -335,6 +335,7 @@ void ProxyServer::UnlinkedSession::on_input(Channel& ch, uint16_t command, uint3
l->bb_username = cmd.username.decode();
l->bb_password = cmd.password.decode();
s->license_index->add(l);
l->save();
license = l;
string l_str = l->str();
ses->log.info("Created license %s", l_str.c_str());