transport: fix wrong type in non-linux orig_dst_* method (#3538)
Signed-off-by: Zahari Dichev <zaharidichev@gmail.com>
This commit is contained in:
parent
a4a55fa5fb
commit
329bee2b3b
|
|
@ -118,7 +118,7 @@ fn orig_dst_addr_v6(sock: &TcpStream) -> io::Result<SocketAddr> {
|
|||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
fn orig_dst_addr_v4(_: &TcpStream) -> io::Result<OrigDstAddr> {
|
||||
fn orig_dst_addr_v4(_: &TcpStream) -> io::Result<SocketAddr> {
|
||||
Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
"SO_ORIGINAL_DST not supported on this operating system",
|
||||
|
|
@ -126,7 +126,7 @@ fn orig_dst_addr_v4(_: &TcpStream) -> io::Result<OrigDstAddr> {
|
|||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
fn orig_dst_addr_v6(_: &TcpStream) -> io::Result<OrigDstAddr> {
|
||||
fn orig_dst_addr_v6(_: &TcpStream) -> io::Result<SocketAddr> {
|
||||
Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
"SO_ORIGINAL_DST not supported on this operating system",
|
||||
|
|
|
|||
Loading…
Reference in New Issue