add community connected endpoint #24

Merged
tanneberger merged 4 commits from ping-endpoint into master 2025-11-14 17:10:05 +01:00
tanneberger commented 2025-11-10 13:20:11 +01:00 (Migrated from github.com)
No description provided.
MarcelCoding (Migrated from github.com) requested changes 2025-11-10 13:30:53 +01:00
@ -44,6 +44,13 @@ pub(crate) struct Args {
)]
MarcelCoding (Migrated from github.com) commented 2025-11-10 13:27:11 +01:00
  pub(crate) alice_looking_glass_url: Url,
```suggestion pub(crate) alice_looking_glass_url: Url, ```
@ -0,0 +1,134 @@
use crate::cache::{Cache, Updater};
MarcelCoding (Migrated from github.com) commented 2025-11-10 13:27:55 +01:00

looking_glass_url is only a address and not an url

looking_glass_url is only a address and not an url
MarcelCoding (Migrated from github.com) commented 2025-11-10 13:30:07 +01:00
pub fn is_address_in_network(routes: &[IpNet], network: IpAddr) -> bool {
```suggestion pub fn is_address_in_network(routes: &[IpNet], network: IpAddr) -> bool { ```
MarcelCoding (Migrated from github.com) commented 2025-11-10 13:30:16 +01:00

Debug logging?

Debug logging?
@ -0,0 +14,4 @@
}
pub(crate) async fn get_connected_to_community(
ConnectInfo(addr): ConnectInfo<SocketAddr>,
MarcelCoding (Migrated from github.com) commented 2025-11-10 13:30:50 +01:00

Hast du mal getestet, ob axum das von den X-Forwarded Headern hier direkt schon einträgt?

Hast du mal getestet, ob axum das von den X-Forwarded Headern hier direkt schon einträgt?
tanneberger (Migrated from github.com) reviewed 2025-11-11 10:26:31 +01:00
@ -0,0 +14,4 @@
}
pub(crate) async fn get_connected_to_community(
ConnectInfo(addr): ConnectInfo<SocketAddr>,
tanneberger (Migrated from github.com) commented 2025-11-11 10:26:31 +01:00

hab ich nicht, aber ist glaube einfacher das erstmal zu deployen und zu schauen, welche IP-Adresse wirklich ankommt.

hab ich nicht, aber ist glaube einfacher das erstmal zu deployen und zu schauen, welche IP-Adresse wirklich ankommt.
MarcelCoding (Migrated from github.com) reviewed 2025-11-11 13:44:16 +01:00
@ -47,0 +47,4 @@
#[clap(
long,
env = "WEBSITE_CONTENT_API_LOOKING_GLASS_URL",
default_value = "https://lg.dd-ix.net/"
MarcelCoding (Migrated from github.com) commented 2025-11-11 13:27:12 +01:00

This is not an address. Either fix the name or the value.

This is not an address. Either fix the name or the value.
@ -0,0 +14,4 @@
}
pub(crate) async fn get_connected_to_community(
ConnectInfo(addr): ConnectInfo<SocketAddr>,
MarcelCoding (Migrated from github.com) commented 2025-11-11 13:27:42 +01:00

Wegen mir, kannst aber auch mit einem curl gens lokal deployte testen

Wegen mir, kannst aber auch mit einem curl gens lokal deployte testen
tanneberger (Migrated from github.com) reviewed 2025-11-12 23:34:31 +01:00
@ -47,0 +47,4 @@
#[clap(
long,
env = "WEBSITE_CONTENT_API_LOOKING_GLASS_URL",
default_value = "https://lg.dd-ix.net/"
tanneberger (Migrated from github.com) commented 2025-11-12 23:34:31 +01:00

@MarcelCoding naming suggestions?

@MarcelCoding naming suggestions?
MarcelCoding (Migrated from github.com) reviewed 2025-11-12 23:44:58 +01:00
@ -47,0 +47,4 @@
#[clap(
long,
env = "WEBSITE_CONTENT_API_LOOKING_GLASS_URL",
default_value = "https://lg.dd-ix.net/"
MarcelCoding (Migrated from github.com) commented 2025-11-12 23:44:58 +01:00

alice_looking_glass_address or alice_looking_glass_url

alice_looking_glass_address or alice_looking_glass_url
Sign in to join this conversation.
No description provided.