Skip to content

Commit fabb584

Browse files
committed
Changed Socket to EndPoint to preserve abstraction
1 parent 513a250 commit fabb584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fleck/WebSocketServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void Start(Action<IWebSocketConnection> config)
7575
var ipLocal = new IPEndPoint(_locationIP, Port);
7676
ListenerSocket.Bind(ipLocal);
7777
ListenerSocket.Listen(100);
78-
Port = ((IPEndPoint)ListenerSocket.Socket.LocalEndPoint).Port;
78+
Port = ((IPEndPoint)ListenerSocket.LocalEndPoint).Port;
7979
FleckLog.Info(string.Format("Server started at {0} (actual port {1})", Location, Port));
8080
if (_scheme == "wss")
8181
{

0 commit comments

Comments
 (0)