upstream: fix conditional for resolveIPAddr

Oops, committed a debug change...

Fixes: f784b42346 ("upstream: use round-robin DNS resolution when per-user IPs are set up")
This commit is contained in:
Simon Ser 2024-03-20 12:14:36 +01:00
parent b70d6f17ce
commit 9386f1c553

View file

@ -376,7 +376,7 @@ func connectToUpstream(ctx context.Context, network *network) (*upstreamConn, er
func dialTCP(ctx context.Context, user *user, addr string) (net.Conn, error) {
var dialer net.Dialer
upstreamUserIPs := user.srv.Config().UpstreamUserIPs
if len(upstreamUserIPs) > 0 || true {
if len(upstreamUserIPs) > 0 {
host, port, err := net.SplitHostPort(addr)
if err != nil {
return nil, err