~emersion/soju

9386f1c55398cebd66a1f230ee2383fa5e5a3d66 — Simon Ser 2 months ago b70d6f1
upstream: fix conditional for resolveIPAddr

Oops, committed a debug change...

Fixes: f784b42346e1 ("upstream: use round-robin DNS resolution when per-user IPs are set up")
1 files changed, 1 insertions(+), 1 deletions(-)

M upstream.go
M upstream.go => upstream.go +1 -1
@@ 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