Compare commits

..

27 Commits

Author SHA1 Message Date
renovate[bot]
c4207d86d0
[dependencies] Update github-actions 2025-09-08 11:42:36 +00:00
世界
47649a7552
ktls: Add warning for inappropriate scenarios 2025-09-08 19:41:52 +08:00
世界
2599ab5117
ktls: Fix parse kernel version 2025-09-08 19:41:10 +08:00
世界
028d345d9d
documentation: Bump version 2025-09-08 19:41:10 +08:00
世界
6a43a8037a
Update Go to 1.25.1 2025-09-08 19:41:10 +08:00
世界
b0e2375fd8
documentation: Add kTLS 2025-09-08 19:41:10 +08:00
世界
46e73d8532
Add support for kTLS
Reference: https://gitlab.com/go-extension/tls
2025-09-08 19:41:09 +08:00
世界
c8d8b7fac9
Add proxy support for ICMP echo request 2025-09-08 19:41:09 +08:00
世界
1bcf36a487
Fix resolve using resolved 2025-09-08 19:41:09 +08:00
世界
6d59c94f33
documentation: Update behavior of local DNS server on darwin 2025-09-08 19:41:09 +08:00
世界
cb50ee4627
Stop using DHCP on iOS and tvOS
We do not have the `com.apple.developer.networking.multicast` entitlement and are unable to obtain it for non-technical reasons.
2025-09-08 19:41:09 +08:00
世界
c0d7ad6118
Remove use of ldflags -checklinkname=0 on darwin 2025-09-08 19:41:08 +08:00
世界
2b2ef490d6
Fix local DNS server on darwin
We mistakenly believed that `libresolv`'s `search` function worked correctly in NetworkExtension, but it seems only `getaddrinfo` does.

This commit changes the behavior of the `local` DNS server in NetworkExtension to prefer DHCP, falling back to `getaddrinfo` if DHCP servers are unavailable.

It's worth noting that `prefer_go` does not disable DHCP since it respects Dial Fields, but `getaddrinfo` does the opposite. The new behavior only applies to NetworkExtension, not to all scenarios (primarily command-line binaries) as it did previously.

In addition, this commit also improves the DHCP DNS server to use the same robust query logic as `local`.
2025-09-08 19:41:08 +08:00
世界
b49ee4eff4
Fix legacy DNS config 2025-09-08 19:41:07 +08:00
世界
a91478d2c7
Fix rule-set format 2025-09-08 19:41:07 +08:00
世界
414fe5f66f
documentation: Remove outdated icons 2025-09-08 19:41:07 +08:00
世界
112f33eeff
documentation: Improve local DNS server 2025-09-08 19:41:07 +08:00
世界
ca3b491c32
Use libresolv in local DNS server on darwin 2025-09-08 19:41:05 +08:00
世界
96e3838dd0
Use resolved in local DNS server if available 2025-09-08 19:41:05 +08:00
xchacha20-poly1305
4be4437ec6
Fix rule set version 2025-09-08 19:41:05 +08:00
世界
69b5a46838
documentation: Add preferred_by route rule item 2025-09-08 19:41:05 +08:00
世界
52ceaf3582
Add preferred_by route rule item 2025-09-08 19:41:05 +08:00
世界
d95f17a655
documentation: Add interface address rule items 2025-09-08 19:41:04 +08:00
世界
e727fdae61
Add interface address rule items 2025-09-08 19:41:03 +08:00
neletor
288a7b9422
Add support for ech retry configs 2025-09-08 19:41:03 +08:00
Zephyruso
65b48422ac
Add /dns/flush-clash meta api 2025-09-08 19:41:03 +08:00
世界
d3fe6e6473
Fix tls options ignored in mixed inbounds 2025-09-08 19:37:58 +08:00
3 changed files with 0 additions and 9 deletions

View File

@ -81,10 +81,6 @@ func parsePreReleaseIdentifier(identifier string) int {
return 0
}
func (v Version) VersionString() string {
return F.ToString(v.Major, ".", v.Minor, ".", v.Patch)
}
func (v Version) String() string {
version := F.ToString(v.Major, ".", v.Minor, ".", v.Patch)
if v.PreReleaseIdentifier != "" {

View File

@ -10,7 +10,6 @@ import (
"github.com/sagernet/fswatch"
"github.com/sagernet/sing-box/adapter"
C "github.com/sagernet/sing-box/constant"
"github.com/sagernet/sing-box/log"
"github.com/sagernet/sing-box/option"
"github.com/sagernet/sing/common"
@ -274,9 +273,6 @@ func NewSTDServer(ctx context.Context, logger log.ContextLogger, options option.
echKeyPath: echKeyPath,
}
if options.KernelTx || options.KernelRx {
if !C.IsLinux {
return nil, E.New("kTLS is only supported on Linux")
}
config = &KTlSServerConfig{
ServerConfig: config,
logger: logger,

View File

@ -88,7 +88,6 @@ func (h *Inbound) Close() error {
h.tlsConfig,
)
}
func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc) {
err := h.newConnection(ctx, conn, metadata, onClose)
N.CloseOnHandshakeFailure(conn, onClose, err)