Skip to content

Commit

Permalink
Merge pull request #26 from Chykary/feature/connection-fix
Browse files Browse the repository at this point in the history
Fix #16 prevent connecting to yourself(SteamId)
  • Loading branch information
Chykary authored Feb 3, 2022
2 parents e034bd7 + 3c43bad commit 8136d0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FizzyFacepunch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public override void ClientConnect(string address)
OnClientDisconnected.Invoke();
return;
}

if (address == SteamUserID.ToString())
{
Debug.Log("You can't connect to yourself.");
return;
}

FetchSteamID();

Expand Down

0 comments on commit 8136d0e

Please sign in to comment.