mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-09-09 21:04:08 +08:00
Compare commits
27 Commits
c4207d86d0
...
2e5d8c2d62
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2e5d8c2d62 | ||
![]() |
34892f4c7e | ||
![]() |
94103df562 | ||
![]() |
a832c26a2f | ||
![]() |
c3ac036aee | ||
![]() |
c3d6f42a5a | ||
![]() |
73595dd75c | ||
![]() |
61bb706ad7 | ||
![]() |
f89ff2fb66 | ||
![]() |
49c7ab402a | ||
![]() |
2ff8e0babc | ||
![]() |
bac7a5bc9e | ||
![]() |
ffc065bd74 | ||
![]() |
ca4bbff6f4 | ||
![]() |
dea7b79d43 | ||
![]() |
bf342408b8 | ||
![]() |
d2856cea06 | ||
![]() |
ff0c266ef0 | ||
![]() |
bc11350397 | ||
![]() |
76a9d68566 | ||
![]() |
83a94a4384 | ||
![]() |
9ee622b807 | ||
![]() |
f8338b15e1 | ||
![]() |
485405d350 | ||
![]() |
084c5f3797 | ||
![]() |
55f7fa1243 | ||
![]() |
79c0b9f51d |
@ -81,6 +81,10 @@ 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 != "" {
|
||||
|
@ -10,6 +10,7 @@ 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"
|
||||
@ -273,6 +274,9 @@ 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,
|
||||
|
@ -88,6 +88,7 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user