Skip to content

Commit 028d974

Browse files
authored
Fix getting local address (#18)
1 parent 19d8bed commit 028d974

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

source/nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -474,18 +474,7 @@ public void Start()
474474
}
475475
catch {}
476476

477-
IPAddress addr;
478-
479-
// FIXME
480-
/// if(System.Hardware.SystemInfo.IsEmulator)
481-
// {
482-
// addr = IPAddress.Any;
483-
// }
484-
// else
485-
{
486-
// addr = IPAddress.GetDefaultLocalAddress();
487-
addr = IPAddress.Any;
488-
}
477+
IPAddress addr = IPAddress.GetDefaultLocalAddress();
489478

490479
IPEndPoint endPoint = new IPEndPoint(addr, m_Port);
491480
m_listener.Bind(endPoint);

0 commit comments

Comments
 (0)