Meow
2026-11-19 11:25:41 +00:00
committed by GitHub
parent b1dfdf25e7
commit ce074ce572
9 changed files with 6 additions and 28 deletions
+1 -3
View File
@@ -29,7 +29,6 @@ import (
type Server struct {
config *ServerConfig
policyManager policy.Manager
cone bool
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,
@@ -277,7 +275,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
}