@ -60,7 +60,7 @@ fn send_udp_packet(){
Ok(s) => s,
Err(e) => panic!("Error happened {}", e),
};
let dest: &str = "8.8.8.8:80";
let dest: &str = "1.1.1.1:80";
socket.set_ttl(1).unwrap();
socket.send_to(&buf, dest).unwrap();
}
@ -98,7 +98,7 @@ fn get_local_ipaddr() -> Option<String> {
Err(_) => return None,
match socket.connect("8.8.8.8:80") {
match socket.connect("1.1.1.1:80") {
Ok(()) => (),