Add v2ray stats api

This commit is contained in:
世界
2022-09-29 08:49:34 +08:00
parent c7a485815c
commit 1b44faed17
32 changed files with 1407 additions and 63 deletions
+7
View File
@@ -0,0 +1,7 @@
package v2rayquic
import "github.com/sagernet/sing-box/transport/v2ray"
func init() {
v2ray.RegisterQUICConstructor(NewServer, NewClient)
}
+1 -1
View File
@@ -29,7 +29,7 @@ type Server struct {
quicListener quic.Listener
}
func NewServer(ctx context.Context, options option.V2RayQUICOptions, tlsConfig tls.Config, handler N.TCPConnectionHandler, errorHandler E.Handler) (*Server, error) {
func NewServer(ctx context.Context, options option.V2RayQUICOptions, tlsConfig tls.Config, handler N.TCPConnectionHandler, errorHandler E.Handler) (adapter.V2RayServerTransport, error) {
quicConfig := &quic.Config{
DisablePathMTUDiscovery: !C.IsLinux && !C.IsWindows,
}