1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2024-09-16 05:30:09 +00:00

Add dualmode IPv4/IPv6 support

This commit is contained in:
Difegue 2022-01-27 20:53:26 +01:00
parent 28e5dbd334
commit 6bcc61b57b

View File

@ -190,7 +190,8 @@ namespace MpcNET
.RetryAsync(isReconnect ? 0 : 3)
.ExecuteAndCaptureAsync(async (t) =>
{
var client = new TcpClient();
var client = new TcpClient(AddressFamily.InterNetworkV6);
client.Client.DualMode = true; // Enable both IPv4 and IPv6
using (t.Register(() => client.Close()))
{
try