Made alterations to functions using IP to make it use new functions

This commit is contained in:
2023-04-26 21:19:35 +01:00
parent d0da5f587f
commit 6fafa97d61
2 changed files with 12 additions and 11 deletions

View File

@ -99,7 +99,7 @@ impl FromStr for IpAddr {
Err(_) => return Err(NetworkingErr::InvalidIPErr)
}
}
Ok(IpAddr::V4(ip[0],ip[1],ip[2],ip[3]))
Ok(IpAddr::from_arr(&ip)?)
}
}