-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS15 tun模式下使用--dev 未正常工作 #260
Comments
说不准可以在 |
等待有 提到的代码: https://github.com/nxtrace/NTrace-core/blob/main/trace/internal/icmp_darwin.go#L45 |
int idx = if_nametoindex(bsd_name);
setsockopt(fd, IPPROTO_IP, IP_BOUND_IF, &idx, sizeof(idx)) Try this? The example code is provided by the creator of the Surge. |
感觉是修改这俩地方:
|
int idx = if_nametoindex(bsd_name); 但是这个是C的 |
It seems that nexttrace is iterating |
func main() {
iface, _ := net.Interfaces()
// fmt.Println(iface)
iface_tun, _ := net.InterfaceByName("utun17")
fmt.Println(iface_tun)
fmt.Println(iface_tun.Addrs())
} Output:
|
我大概看了一下,目前的代码实现方式与Surge creator提到的是一样的 |
此commit大概解决此issue了,这几天先进行测试 |
使用
--source
参数以后第一跳依旧是 TUN:Originally posted by @SukkaW in #251 (comment)
The text was updated successfully, but these errors were encountered: