feat: Basic HTTP listener

This commit is contained in:
selfhoster selfhoster 2026-09-03 21:50:32 +02:00
commit 452da73413
7 changed files with 350 additions and 7 deletions

View file

@ -3,7 +3,11 @@ use argh::FromArgs;
/// Run the llldap server
#[derive(FromArgs)]
pub struct CliArgs {
/// address or socket to listen on
#[argh(positional, default = "String::from(\"127.0.0.1:3389\")")]
pub listen: String,
/// address or socket to listen on for LDAP connections
#[argh(option, default = "String::from(\"127.0.0.1:3389\")")]
pub listen_ldap: String,
/// address or socket to listen on for HTTP connections
#[argh(option, default = "String::from(\"127.0.0.1:3390\")")]
pub listen_http: String,
}