Revert WG changes and use the local proxy

This commit is contained in:
Zoltán Papp
2024-04-23 16:07:40 +02:00
parent 318d379658
commit 3cb519c650
8 changed files with 98 additions and 44 deletions

View File

@@ -76,7 +76,8 @@ func (p *WGUserSpaceProxy) proxyToRemote() {
continue
}
_, err = p.remoteConn.Write(buf[:n])
log.Debugf("read from local conn %d bytes and forward to relay", n)
n, err = p.remoteConn.Write(buf[:n])
if err != nil {
continue
}