cert work

This commit is contained in:
2026-02-15 22:21:09 -05:00
parent d6c98bcf10
commit 79da5e1146
4 changed files with 91 additions and 91 deletions

View File

@@ -42,8 +42,8 @@ fn main() {
#[tokio::main]
pub async fn run_server(port: u16) {
let dir = DataDir::default();
let path = dir.get();
let db = Db::open(path.join("server_db"));
let path = dir.get().join("server");
let db = Db::open(path.join("db"));
let handler = ServerListener {
senders: Default::default(),
count: 0.into(),
@@ -53,7 +53,7 @@ pub async fn run_server(port: u16) {
let token = account_token(&db, ServerPerms::ACCOUNT_TOKENS);
println!("no users found, token for admin: {token}");
}
let (endpoint, handle) = listen(port, path, handler);
let (endpoint, handle) = listen(port, &path, handler);
let _ = ctrl_c().await;
println!("stopping server");
println!("closing connections...");