more ip resolution services
All checks were successful
Build and Test / mario-tennis (push) Successful in 2m2s
Build and Test / minecraft-wiiu (push) Successful in 2m29s
Build and Test / fast-racing-neo (push) Successful in 2m48s
Build and Test / wii-u-chat (push) Successful in 3m17s
Build and Test / friends (push) Successful in 3m44s
Build and Test / super-mario-maker (push) Successful in 4m57s
Build and Test / puyopuyo (push) Successful in 5m12s
Build and Test / splatoon-testfire (push) Successful in 5m53s
Build and Test / wii-sports-club (push) Successful in 6m14s
Build and Test / sonic-transformed (push) Successful in 6m40s
Build and Test / splatoon (push) Successful in 7m16s

This commit is contained in:
Maple Nebel 2026-05-29 09:00:10 +02:00
commit 0ec7328396
3 changed files with 31 additions and 9 deletions

View file

@ -40,9 +40,9 @@ pub enum Error {
#[error("error parsing ip address environment variable \"{0}\": {1}")]
AddrParse(&'static str, AddrParseError),
#[error(
"error error getting public ip address: \n\tattempted to read from env var \"SERVER_IP_PUBLIC\" and got: {0} \n\tattempted to request from internet and failed with: {1}"
"error error getting public ip address: \n\tattempted to read from env var \"SERVER_IP_PUBLIC\" and got: {0}\n\tfor other attempts check logs"
)]
PubAddrGetErr(Box<Self>, Box<dyn error::Error>),
PubAddrGetErr(Box<Self>),
}
impl Into<Error> for (&'static str, AddrParseError) {
fn into(self) -> Error {
@ -88,7 +88,7 @@ impl ProxyStartupParam {
Ok(v) => v,
Err(e) => try_get_ip()
.map(|v| SocketAddrV4::new(v, self_private.port()))
.map_err(move |v| Error::PubAddrGetErr(Box::new(e), v))?,
.ok_or(Error::PubAddrGetErr(Box::new(e)))?,
};
Ok(Self {