Implement end-to-end SOCKS relay flow with server upstream handling

This commit is contained in:
Amin.MasterkinG
2026-04-20 19:46:01 +03:30
parent 2a0baa80b0
commit 5a52d870e7
8 changed files with 330 additions and 15 deletions
+3
View File
@@ -13,6 +13,7 @@ import (
"fmt"
"net"
"sync"
"sync/atomic"
"time"
"masterhttprelayvpn/internal/config"
@@ -28,6 +29,8 @@ type Client struct {
connMu sync.Mutex
conns map[net.Conn]struct{}
lastPollUnixMS atomic.Int64
}
func New(cfg config.Config, lg *logger.Logger) *Client {