mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-20 22:38:07 +03:00
Update sing-box core, refactor MASQUE, update XHTTP
This commit is contained in:
@@ -11,7 +11,7 @@ const utunControlName = "com.apple.net.utun_control"
|
||||
func GetTunnelFileDescriptor() int32 {
|
||||
ctlInfo := &unix.CtlInfo{}
|
||||
copy(ctlInfo.Name[:], utunControlName)
|
||||
for fd := 0; fd < 1024; fd++ {
|
||||
for fd := range 1024 {
|
||||
addr, err := unix.Getpeername(fd)
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user