mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-08-30 22:08:49 +08:00
Compare commits
108 Commits
16f243b615
...
ccceb8b30a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ccceb8b30a | ||
![]() |
778f9ef81f | ||
![]() |
0c5947e1e3 | ||
![]() |
e268f53c87 | ||
![]() |
8505fc8352 | ||
![]() |
8c4298fd90 | ||
![]() |
e3f6d827bd | ||
![]() |
3f78bf5b93 | ||
![]() |
91f4ab15e9 | ||
![]() |
663da9d605 | ||
![]() |
0c53d6fe4c | ||
![]() |
63760e7f53 | ||
![]() |
d7936ad3a0 | ||
![]() |
e2e36e0d9e | ||
![]() |
47b77b2cc0 | ||
![]() |
8982765024 | ||
![]() |
93dbcbdb47 | ||
![]() |
46a45af787 | ||
![]() |
d3f7f2aaef | ||
![]() |
e617f7ac2d | ||
![]() |
213ad2f3c1 | ||
![]() |
83ca997dd3 | ||
![]() |
bf2963da47 | ||
![]() |
d0108ef0d7 | ||
![]() |
6c559b5df1 | ||
![]() |
4c2eaf624c | ||
![]() |
819c2b46c4 | ||
![]() |
5b34431612 | ||
![]() |
d0e5d145f2 | ||
![]() |
7a219c4613 | ||
![]() |
1a4827a292 | ||
![]() |
4f665ca82e | ||
![]() |
37297190da | ||
![]() |
105101fa0b | ||
![]() |
58c2f6f2cb | ||
![]() |
5cf1b601b4 | ||
![]() |
cd46c5323a | ||
![]() |
6c128dc213 | ||
![]() |
c0e374451d | ||
![]() |
2f1a618390 | ||
![]() |
b0206c1337 | ||
![]() |
07b955c305 | ||
![]() |
442f96e509 | ||
![]() |
2ae7c0964c | ||
![]() |
2afe76b3fd | ||
![]() |
6017820c82 | ||
![]() |
d2b136ed98 | ||
![]() |
11c23a30a4 | ||
![]() |
d1a405cea0 | ||
![]() |
194c890f7a | ||
![]() |
c2518597d5 | ||
![]() |
41e2cb5be4 | ||
![]() |
41699a35f1 | ||
![]() |
9802c6a930 | ||
![]() |
2450dec60e | ||
![]() |
5d7c093158 | ||
![]() |
6de9da225a | ||
![]() |
4f9b09e82a | ||
![]() |
bf556b1209 | ||
![]() |
34cd7f9634 | ||
![]() |
a6686075b1 | ||
![]() |
0d6ae99f33 | ||
![]() |
dac7028377 | ||
![]() |
09e8f7a4ef | ||
![]() |
4ee3b46e52 | ||
![]() |
69f86934fc | ||
![]() |
c64fb04fc9 | ||
![]() |
689f3b6b10 | ||
![]() |
83aecd3605 | ||
![]() |
6d2d9a58c6 | ||
![]() |
78488015c2 | ||
![]() |
ea3e5bf5e2 | ||
![]() |
16da80db87 | ||
![]() |
76e16f8a05 | ||
![]() |
da25171807 | ||
![]() |
afe870e530 | ||
![]() |
434b81ecf0 | ||
![]() |
f204231a76 | ||
![]() |
b032700526 | ||
![]() |
9514219058 | ||
![]() |
2610949d7d | ||
![]() |
241f5ec390 | ||
![]() |
a277fa1020 | ||
![]() |
67ab67975f | ||
![]() |
3665723c66 | ||
![]() |
5253490bde | ||
![]() |
46d40e6370 | ||
![]() |
1b544afc62 | ||
![]() |
9d5bc110ac | ||
![]() |
71927fc02b | ||
![]() |
02885d2c0a | ||
![]() |
3fb5d84542 | ||
![]() |
bf36e62560 | ||
![]() |
ffd8ce99f0 | ||
![]() |
2a5bba8695 | ||
![]() |
e76d0d5a9b | ||
![]() |
0d287ae15e | ||
![]() |
a5332b48c3 | ||
![]() |
43ca1756dc | ||
![]() |
8a0e272e7f | ||
![]() |
61ec6bb81c | ||
![]() |
93a3f1e12f | ||
![]() |
125cad85c8 | ||
![]() |
26af3ecfa1 | ||
![]() |
4682149516 | ||
![]() |
b465281ed9 | ||
![]() |
6094118a7a | ||
![]() |
692d863422 |
@ -1 +1 @@
|
||||
Subproject commit eb2e13a6f9a8c03a35ae672395ccab0a6bdcd954
|
||||
Subproject commit 320170a1077ea5c93872b3e055b96b8836615ef0
|
@ -76,8 +76,6 @@ func findProcessName(network string, ip netip.Addr, port int) (string, error) {
|
||||
// rup8(sizeof(xtcpcb_n))
|
||||
itemSize += 208
|
||||
}
|
||||
|
||||
var fallbackUDPProcess string
|
||||
// skip the first xinpgen(24 bytes) block
|
||||
for i := 24; i+itemSize <= len(buf); i += itemSize {
|
||||
// offset of xinpcb_n and xsocket_n
|
||||
@ -92,12 +90,10 @@ func findProcessName(network string, ip netip.Addr, port int) (string, error) {
|
||||
flag := buf[inp+44]
|
||||
|
||||
var srcIP netip.Addr
|
||||
srcIsIPv4 := false
|
||||
switch {
|
||||
case flag&0x1 > 0 && isIPv4:
|
||||
// ipv4
|
||||
srcIP = netip.AddrFrom4(*(*[4]byte)(buf[inp+76 : inp+80]))
|
||||
srcIsIPv4 = true
|
||||
case flag&0x2 > 0 && !isIPv4:
|
||||
// ipv6
|
||||
srcIP = netip.AddrFrom16(*(*[16]byte)(buf[inp+64 : inp+80]))
|
||||
@ -105,21 +101,13 @@ func findProcessName(network string, ip netip.Addr, port int) (string, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
if ip == srcIP {
|
||||
// xsocket_n.so_last_pid
|
||||
pid := readNativeUint32(buf[so+68 : so+72])
|
||||
return getExecPathFromPID(pid)
|
||||
if ip != srcIP {
|
||||
continue
|
||||
}
|
||||
|
||||
// udp packet connection may be not equal with srcIP
|
||||
if network == N.NetworkUDP && srcIP.IsUnspecified() && isIPv4 == srcIsIPv4 {
|
||||
pid := readNativeUint32(buf[so+68 : so+72])
|
||||
fallbackUDPProcess, _ = getExecPathFromPID(pid)
|
||||
}
|
||||
}
|
||||
|
||||
if network == N.NetworkUDP && len(fallbackUDPProcess) > 0 {
|
||||
return fallbackUDPProcess, nil
|
||||
// xsocket_n.so_last_pid
|
||||
pid := readNativeUint32(buf[so+68 : so+72])
|
||||
return getExecPathFromPID(pid)
|
||||
}
|
||||
|
||||
return "", ErrNotFound
|
||||
|
@ -2,17 +2,10 @@
|
||||
icon: material/alert-decagram
|
||||
---
|
||||
|
||||
#### 1.12.0-beta.27
|
||||
#### 1.12.0-beta.26
|
||||
|
||||
* Fixes and improvements
|
||||
|
||||
### 1.11.14
|
||||
|
||||
* Fixes and improvements
|
||||
|
||||
_We are temporarily unable to update sing-box apps on the App Store because the reviewer mistakenly found that we
|
||||
violated the rules (TestFlight users are not affected)._
|
||||
|
||||
#### 1.12.0-beta.24
|
||||
|
||||
* Allow `tls_fragment` and `tls_record_fragment` to be enabled together **1**
|
||||
|
Loading…
x
Reference in New Issue
Block a user