aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index b5db4859..e87d52b6 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -73,6 +73,10 @@ pub(crate) struct Args {
#[cfg(feature = "register")]
#[arg(long)]
register_disable_ip6: bool,
+ /// Address of registry server to use when registering
+ #[cfg(feature = "register")]
+ #[arg(long, default_value = "https://hurrycurry-registry.metamuffin.org")]
+ registry_server: String,
}
fn main() -> Result<()> {
@@ -158,6 +162,7 @@ async fn run(data_path: PathBuf, args: Args) -> anyhow::Result<()> {
args.server_name.clone(),
args.listen.port(),
args.register_uri,
+ args.registry_server,
state.clone(),
args.register_disable_ip4,
args.register_disable_ip6,