Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
Signed-off-by: ArchBlood <[email protected]>
  • Loading branch information
ArchBlood authored Mar 28, 2024
1 parent 527239d commit e895ef9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use std::net::TcpStream;
use std::io::{self, Read};
use std::fs::File;
use serde::{Deserialize};
use trust_dns_resolver::{Resolver, config::ResolverConfig, config::ResolverOpts};
use std::net::TcpStream;

#[derive(Debug, Deserialize)]
struct Config {
domain_name: String,
server_ip: String,
host: String,
username: String,
password: String,
Expand All @@ -29,7 +28,8 @@ fn run() -> io::Result<()> {

println!("DNS record updated successfully: {:?}", response);

let tcp = TcpStream::connect(format!("{}:22", config.host))?;
let _tcp = TcpStream::connect(format!("{}:22", config.host))?;

let mut sess = ssh2::Session::new()?;
if let Err(err) = sess.handshake() {
return Err(io::Error::new(io::ErrorKind::Other, err));
Expand Down

0 comments on commit e895ef9

Please sign in to comment.