From ecfa57305744ce4af4b072f6f67347f801d9a8c6 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 2 Jun 2016 20:18:40 -0400 Subject: server: proper parsing of SSH_COMMAND --- src/common.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/common.rs') diff --git a/src/common.rs b/src/common.rs index 175c4b8..bf3910e 100644 --- a/src/common.rs +++ b/src/common.rs @@ -9,16 +9,6 @@ use std::io::{Read, Write, BufRead, BufReader}; use std::process::exit; use std::net; -// This function is an ugly hack fall-back. It tries to find public IP address of this machine by -// creating an outdoing connection -pub fn get_local_ip() -> io::Result { - - let dummy = try!(net::TcpListener::bind("0.0.0.0:0")); - let addr = try!(dummy.local_addr()).ip(); - drop(dummy); - Ok(addr) -} - pub fn source_files(stream: &mut S, file_path: &str, recursive: bool) { println!("SOURCE FILE: {}", file_path); if recursive { unimplemented!(); } -- cgit v1.2.3