Skip to content

Commit

Permalink
Changed Socket to EndPoint to preserve abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
klugerama committed Dec 4, 2015
1 parent 513a250 commit fabb584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fleck/WebSocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void Start(Action<IWebSocketConnection> config)
var ipLocal = new IPEndPoint(_locationIP, Port);
ListenerSocket.Bind(ipLocal);
ListenerSocket.Listen(100);
Port = ((IPEndPoint)ListenerSocket.Socket.LocalEndPoint).Port;
Port = ((IPEndPoint)ListenerSocket.LocalEndPoint).Port;
FleckLog.Info(string.Format("Server started at {0} (actual port {1})", Location, Port));
if (_scheme == "wss")
{
Expand Down

0 comments on commit fabb584

Please sign in to comment.