mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Add dualmode IPv4/IPv6 support
This commit is contained in:
parent
28e5dbd334
commit
6bcc61b57b
@ -190,7 +190,8 @@ namespace MpcNET
|
|||||||
.RetryAsync(isReconnect ? 0 : 3)
|
.RetryAsync(isReconnect ? 0 : 3)
|
||||||
.ExecuteAndCaptureAsync(async (t) =>
|
.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()))
|
using (t.Register(() => client.Close()))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user