Skip to content

Commit

Permalink
remove any remnants forcing ipv4
Browse files Browse the repository at this point in the history
fixes #16
  • Loading branch information
mcginty committed Aug 3, 2016
1 parent fe75b76 commit cedafe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod connection;

use unix_daemonize::{daemonize_redirect, ChdirMode};
use std::process::Command;
use std::net::{SocketAddr, SocketAddrV4, IpAddr};
use std::net::{SocketAddr, IpAddr};
use std::str;
use std::env;
use std::thread;
Expand Down Expand Up @@ -285,8 +285,8 @@ pub fn download(remote_ssh_host: &str,
let mut keybytes = [0u8; 32];
keybytes.copy_from_slice(&keyhex.from_hex().unwrap()[..]);
let key = Key(keybytes);
let addr: SocketAddr = SocketAddr::V4(SocketAddrV4::from_str(&format!("{}:{}", ip, port)[..])
.unwrap());
let addr: SocketAddr = SocketAddr::from_str(&format!("{}:{}", ip, port)[..])
.unwrap();
let conn = connection::Client::new(addr, key);

let mut offset = 0u64;
Expand Down

0 comments on commit cedafe4

Please sign in to comment.