summaryrefslogtreecommitdiffhomepage
path: root/tunnel/tools/libwg-go/http-proxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'tunnel/tools/libwg-go/http-proxy.go')
-rw-r--r--tunnel/tools/libwg-go/http-proxy.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tunnel/tools/libwg-go/http-proxy.go b/tunnel/tools/libwg-go/http-proxy.go
index 7e2bd32f..844ffae5 100644
--- a/tunnel/tools/libwg-go/http-proxy.go
+++ b/tunnel/tools/libwg-go/http-proxy.go
@@ -604,11 +604,11 @@ func (h *HttpHandler) addConnToProxyMap(c net.Conn) bool {
}
newConn := connection{src: local, dst: remote}
- oldConn, ok := h.p.conntrack.lookupConnection(newConn)
+ m, ok := h.p.conntrack.lookupConnection(newConn)
if ok {
- local = oldConn.src
- remote = oldConn.dst
+ local = m.orig.src
+ remote = m.orig.dst
h.logger.Verbosef("Before NAT: %v -> %v", local, remote)
} else if remote.Addr().IsLoopback() {
h.logger.Verbosef("Loopback request")