Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jpx40 committed Feb 25, 2024
1 parent c965f7a commit 406c265
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions central/rsrem/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions central/rsrem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ smol = "2.0.0"
ssh2 = { version = "0.9.4", features = ["vendored-openssl"] }
time = "0.3.34"
toml = "0.8.10"
uninit = "0.6.2"
3 changes: 2 additions & 1 deletion central/rsrem/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ impl Connection {
let mut ip: String = String::new();
let mut status: bool;
let r: (bool, String, Option<IpAddr>);
let ip_addr: IpAddr;

match &self.host {
Some(i) => {
let check = ipaddress::IPAddress::is_valid(i.to_string());
Expand Down Expand Up @@ -109,7 +111,6 @@ impl Connection {
dont_fragment: true,
};
// let mut ip_addr: IpAddr = Ipv4Addr::new(127, 0, 0, 1);
let ip_addr: IpAddr;
if ip.contains(":") {
ip_addr = IpAddr::V6(ip.parse().unwrap());
} else {
Expand Down

0 comments on commit 406c265

Please sign in to comment.