From a00c0764e53666cf7273f46cfab7785e561c1fba Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Wed, 28 Mar 2018 20:09:43 +0800 Subject: [PATCH] Pass unused data into Receiver --- app/proxyman/inbound/unix.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/proxyman/inbound/unix.go b/app/proxyman/inbound/unix.go index 62a72417..b93e8504 100644 --- a/app/proxyman/inbound/unix.go +++ b/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