diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/proxy.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/proxy.go b/client/proxy.go index b39af32..ed17c82 100644 --- a/client/proxy.go +++ b/client/proxy.go @@ -80,6 +80,7 @@ func (p *Proxy) Tunnel(ctx context.Context, peer string) error { } cctx, cf := context.WithCancel(ctx) p.cancel = cf + client := *p.c p.mu.Unlock() defer func() { p.mu.Lock() @@ -87,7 +88,7 @@ func (p *Proxy) Tunnel(ctx context.Context, peer string) error { p.mu.Unlock() }() // we set peer IPs to nil here as proxyguard already does a DNS request for us - return p.c.Tunnel(cctx, peer, nil) + return client.Tunnel(cctx, peer, nil) } // StartProxyguard starts proxyguard for proxied WireGuard connections |
