Made alterations to functions using IP to make it use new functions
This commit is contained in:
@ -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)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user