0001-Connect-to-IPv6-servers.patch
b/src/IrcConnection/IrcConnection.cs | ||
---|---|---|
573 | 573 |
OnConnecting(this, EventArgs.Empty); |
574 | 574 |
} |
575 | 575 |
try { |
576 |
System.Net.IPAddress ip = System.Net.Dns.Resolve(Address).AddressList[0]; |
|
577 |
|
|
578 | 576 |
_TcpClient = new TcpClient(); |
579 | 577 |
_TcpClient.NoDelay = true; |
580 | 578 |
_TcpClient.Client.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 1); |
... | ... | |
607 | 605 |
|
608 | 606 |
_TcpClient.Connect(_ProxyHost, _ProxyPort); |
609 | 607 |
proxyClient.TcpClient = _TcpClient; |
610 |
proxyClient.CreateConnection(ip.ToString(), port); |
|
608 |
proxyClient.CreateConnection(Address, port); |
|
611 | 609 |
} else { |
612 |
_TcpClient.Connect(ip, port); |
|
610 |
_TcpClient.Connect(Address, port); |
|
613 | 611 |
} |
614 | 612 |
|
615 | 613 |
Stream stream = _TcpClient.GetStream(); |
616 |
- |