Remove xray.cone.disabled env var

This commit is contained in:
Meo597
2026-05-10 19:16:30 +08:00
parent 1bdb488c9e
commit 813406c0df
9 changed files with 6 additions and 30 deletions
+1 -3
View File
@@ -28,7 +28,6 @@ import (
type Server struct {
config *ServerConfig
policyManager policy.Manager
cone bool
udpFilter *UDPFilter
httpServer *http.Server
}
@@ -39,7 +38,6 @@ func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) {
s := &Server{
config: config,
policyManager: v.GetFeature(policy.ManagerType()).(policy.Manager),
cone: ctx.Value("cone").(bool),
}
httpConfig := &http.ServerConfig{
UserLevel: config.UserLevel,
@@ -263,7 +261,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn stat.Connection, dis
payload.UDP = &destination
if !s.cone || dest == nil {
if dest == nil {
dest = &destination
}