1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Default Socket.Listen() IP to 127.0.0.1

This commit is contained in:
m910q 2022-08-26 18:55:32 +02:00
parent 469a81afb9
commit 7d26c115bb

View file

@ -339,7 +339,7 @@ namespace System.Net
SetBlocking(mIsBlocking);
}
public Result<void> Listen(IPv4Address address, int32 port, int32 backlog = 5)
public Result<void> Listen(int32 port, IPv4Address address = .(127, 0, 0, 1), int32 backlog = 5)
{
Debug.Assert(mHandle == INVALID_SOCKET);