aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin <quentin@dufour.io>2024-02-10 11:11:55 +0000
committerQuentin <quentin@dufour.io>2024-02-10 11:11:55 +0000
commit3b675ac35769a3be3f268e0c8fecb41bae9acc72 (patch)
tree3d3adfb66c40fcd005bdf0b64e2c3d78f8659ca1 /src/main.rs
parent93c0aa4b3a89201530520c46986659731a43cad6 (diff)
parent0e3cfe536f111c1094d530aed0581390e3fbc878 (diff)
downloadaerogramme-3b675ac35769a3be3f268e0c8fecb41bae9acc72.tar.gz
aerogramme-3b675ac35769a3be3f268e0c8fecb41bae9acc72.zip
Merge pull request 'WIP 0.2.1' (#93) from bug/deployment into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/pulls/93
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 72bce83..12a5895 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,7 +34,12 @@ struct Args {
#[clap(long)]
dev: bool,
- #[clap(short, long, env = "AEROGRAMME_CONFIG", default_value = "aerogramme.toml")]
+ #[clap(
+ short,
+ long,
+ env = "AEROGRAMME_CONFIG",
+ default_value = "aerogramme.toml"
+ )]
/// Path to the main Aerogramme configuration file
config_file: PathBuf,
}
@@ -187,7 +192,10 @@ async fn main() -> Result<()> {
hostname: "example.tld".to_string(),
}),
auth: Some(AuthConfig {
- bind_addr: SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), 12345),
+ bind_addr: SocketAddr::new(
+ IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)),
+ 12345,
+ ),
}),
users: UserManagement::Demo,
})