mirror of
https://github.com/snltty/linker.git
synced 2025-10-06 17:46:59 +08:00
sync
This commit is contained in:
@@ -70,6 +70,10 @@ namespace linker.libs.extends
|
||||
}
|
||||
public static void ReuseBind(this Socket socket, IPEndPoint ip)
|
||||
{
|
||||
if(ip.AddressFamily == AddressFamily.InterNetworkV6)
|
||||
{
|
||||
socket.IPv6Only(ip.AddressFamily,false);
|
||||
}
|
||||
socket.Reuse(true);
|
||||
socket.Bind(ip);
|
||||
}
|
||||
|
Reference in New Issue
Block a user