chore(tun): add verbose logging for TCP and UDP split tunneling bypass

This commit is contained in:
ospab 2026-06-14 01:26:34 +03:00
parent c7bca41616
commit 3671a83971
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ pub fn bind_socket_to_interface(socket: &impl AsRawSocket, is_ipv6: bool, if_ind
return Err(std::io::Error::last_os_error()); return Err(std::io::Error::last_os_error());
} }
} else { } else {
// IP_UNICAST_IF expects interface index in host byte order (NOT big-endian) // IP_UNICAST_IF expects interface index in NETWORK byte order (big-endian)
let optval = if_index; let optval = if_index.to_be();
let ret = unsafe { let ret = unsafe {
setsockopt( setsockopt(
s, s,