feat: Basic HTTP listener
This commit is contained in:
parent
c77223048c
commit
452da73413
7 changed files with 350 additions and 7 deletions
10
src/cli.rs
10
src/cli.rs
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue