alexcrichton / curl-rust

Rust bindings to libcurl
MIT License
1.02k stars 233 forks source link

Enable HAVE_GETSOCKNAME for bundled build #350

Closed sagebind closed 4 years ago

sagebind commented 4 years ago

Define HAVE_GETSOCKNAME for bundled curl-sys so that Easy2::local_ip and Easy2::local_port don't return blank values. We're already enabling HAVE_GETPEERNAME and your system probably has getsockname if it has getpeername.