Server Accepting Connections
SILLY ME THE SERVER WASN'T ACCEPTING CONNECTIONS
This commit is contained in:
parent
6b3dd32a61
commit
48faee4db5
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ using Microsoft.Extensions.Logging;
|
|||
|
||||
listener.NetworkErrorEvent += (point, code) => Logger.Log(LogLevel.Debug, $"{point.Address}: Error {code}");
|
||||
|
||||
listener.ConnectionRequestEvent += request => request.AcceptIfKey("aetheria-cc65a44d");
|
||||
|
||||
listener.PeerConnectedEvent += peer =>
|
||||
{
|
||||
Logger.Log(LogLevel.Debug, $"User Connected: {peer.EndPoint}"); // Show peer ip
|
||||
|
|
|
|||
Loading…
Reference in a new issue