Rust upgrade: use ToSocketAddr.