From 11d4838804b644940273dd856e8c9ae3b1a16424 Mon Sep 17 00:00:00 2001 From: purerosefallen <78877@qq.com> Date: Fri, 13 Aug 2021 12:13:47 +0800 Subject: [PATCH] remote dups --- chain.go | 4 ++-- handler.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/chain.go b/chain.go index 4f91fdb..9a973ff 100644 --- a/chain.go +++ b/chain.go @@ -162,9 +162,9 @@ func (c *Chain) dialWithOptions(ctx context.Context, network, address string, op return cc.Control(func(fd uintptr) { ex := setSocketMark(int(fd), c.Mark) if ex != nil { - log.Logf("net dialer set mark %d error: %s", options.Mark, ex) + log.Logf("net dialer set mark %d error: %s", c.Mark, ex) } else { - log.Logf("net dialer set mark %d success", options.Mark) + // log.Logf("net dialer set mark %d success", options.Mark) } }) } diff --git a/handler.go b/handler.go index 295a090..eee515c 100644 --- a/handler.go +++ b/handler.go @@ -42,7 +42,6 @@ type HandlerOptions struct { IPs []string TCPMode bool IPRoutes []IPRoute - Mark int } // HandlerOption allows a common way to set handler options.