From 3671a8397172786e66f24752592487b2f59fb5bb Mon Sep 17 00:00:00 2001 From: ospab Date: Sun, 14 Jun 2026 01:26:34 +0300 Subject: [PATCH] chore(tun): add verbose logging for TCP and UDP split tunneling bypass --- ostp-client/src/tunnel/proxy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ostp-client/src/tunnel/proxy.rs b/ostp-client/src/tunnel/proxy.rs index 9191199..ba7c206 100644 --- a/ostp-client/src/tunnel/proxy.rs +++ b/ostp-client/src/tunnel/proxy.rs @@ -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()); } } else { - // IP_UNICAST_IF expects interface index in host byte order (NOT big-endian) - let optval = if_index; + // IP_UNICAST_IF expects interface index in NETWORK byte order (big-endian) + let optval = if_index.to_be(); let ret = unsafe { setsockopt( s,