Kaynağa Gözat

Pass unused data into Receiver

Shelikhoo 7 yıl önce
ebeveyn
işleme
a00c0764e5
1 değiştirilmiş dosya ile 7 ekleme ve 5 silme
  1. 7 5
      app/proxyman/inbound/unix.go

+ 7 - 5
app/proxyman/inbound/unix.go

@@ -18,6 +18,7 @@ type UnixInboundHandler struct {
 	path           string
 	proxy          proxy.Inbound
 	mux            *mux.Server
+	additional     *proxyman.UnixReceiverConfig
 }
 
 func (uih *UnixInboundHandler) Start() {
@@ -86,11 +87,12 @@ func NewUnixInboundHandler(ctx context.Context, tag string, receiverConfig *prox
 	}
 
 	h := &UnixInboundHandler{
-		proxy: p,
-		mux:   mux.NewServer(ctx),
-		tag:   tag,
-		ctx:   ctx,
-		path:  receiverConfig.DomainSockSettings.GetPath(),
+		proxy:      p,
+		mux:        mux.NewServer(ctx),
+		tag:        tag,
+		ctx:        ctx,
+		path:       receiverConfig.DomainSockSettings.GetPath(),
+		additional: receiverConfig,
 	}
 
 	return h, nil