Fix linux build for beta 0.4.1

This commit is contained in:
ospab 2026-07-07 17:10:25 +03:00
parent acab38c551
commit dbd4ebc4e3
2 changed files with 2 additions and 3 deletions

View File

@ -126,7 +126,6 @@ pub fn get_process_name_from_port(port: u16) -> Option<String> {
use std::fs;
use std::io::{BufRead, BufReader};
let mut target_inode = None;
let hex_port = format!("{:04X}", port);
let check_net_file = |path: &str| -> Option<u64> {
@ -146,7 +145,7 @@ pub fn get_process_name_from_port(port: u16) -> Option<String> {
None
};
target_inode = check_net_file("/proc/net/tcp")
let target_inode = check_net_file("/proc/net/tcp")
.or_else(|| check_net_file("/proc/net/tcp6"))
.or_else(|| check_net_file("/proc/net/udp"))
.or_else(|| check_net_file("/proc/net/udp6"));

View File

@ -134,7 +134,7 @@ async fn start_udp_bypass_session(
}
#[cfg(target_os = "linux")]
if let Some(ref name) = phys_if_name {
if let Some(ref name) = _phys_if_name {
let _ = crate::tunnel::proxy::bind_socket_to_interface(&socket, name);
}