Compare commits

...

2 Commits

Author SHA1 Message Date
Sentsuki
c2c44a076f
documentation: Fix Rcode's migration guide
Signed-off-by: Sentsuki <52487960+Sentsuki@users.noreply.github.com>
2025-08-10 19:49:04 +08:00
世界
43fef1dae6
android: Add workaround for tailscale pidfd crash 2025-08-05 23:20:42 +08:00
4 changed files with 38 additions and 15 deletions

View File

@ -112,6 +112,8 @@ func buildAndroid() {
args = append(args, debugFlags...) args = append(args, debugFlags...)
} }
args = append(args, "-ldflags", "-checklinkname=0")
tags := append(sharedTags, memcTags...) tags := append(sharedTags, memcTags...)
if debugEnabled { if debugEnabled {
tags = append(tags, debugTags...) tags = append(tags, debugTags...)

View File

@ -351,14 +351,15 @@ DNS servers are refactored for better performance and scalability.
```json ```json
{ {
"dns": { "dns": {
"servers": [ "rules": [
{ {
"type": "predefined", "domain": [
"responses": [ "example.com"
{ ],
"rcode": "REFUSED" // other rules
}
] "action": "predefined",
"rcode": "REFUSED"
} }
] ]
} }
@ -1187,4 +1188,4 @@ which will disrupt the existing `process_path` use cases in Windows.
} }
} }
} }
``` ```

View File

@ -351,14 +351,15 @@ DNS 服务器已经重构。
```json ```json
{ {
"dns": { "dns": {
"servers": [ "rules": [
{ {
"type": "predefined", "domain": [
"responses": [ "example.com"
{ ],
"rcode": "REFUSED" // 其它规则
}
] "action": "predefined",
"rcode": "REFUSED"
} }
] ]
} }

View File

@ -0,0 +1,19 @@
package libbox
import (
"os"
_ "unsafe"
)
// https://github.com/SagerNet/sing-box/issues/3233
// https://github.com/golang/go/issues/70508
// https://github.com/tailscale/tailscale/issues/13452
//go:linkname checkPidfdOnce os.checkPidfdOnce
var checkPidfdOnce func() error
func init() {
checkPidfdOnce = func() error {
return os.ErrInvalid
}
}