Skip to content

Commit

Permalink
1.2.4
Browse files Browse the repository at this point in the history
- Fixed maximum clients allowing 1 additional client to connect.
- UseWSS is now false by default.
  • Loading branch information
FirstGearGames committed Apr 12, 2022
1 parent 859874c commit fbcdfc8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions FishNet/Plugins/Bayou/Bayou.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Bayou : Transport
/// </summary>
[Tooltip("True to connect using WSS.")]
[SerializeField]
private bool _useWss = true;
private bool _useWss = false;
/// <summary>
/// Address to connect.
/// </summary>
Expand Down Expand Up @@ -367,7 +367,6 @@ public override void Shutdown()
private bool StartServer()
{
_server.Initialize(this, _mtu);
string bindAddress = string.Empty;
return _server.StartConnection(_port, _maximumClients);
}

Expand Down
4 changes: 4 additions & 0 deletions FishNet/Plugins/Bayou/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.2.4
- Fixed maximum clients allowing 1 additional client to connect.
- UseWSS is now false by default.

1.2.3
- Really fixed index issue in AddChannel.
- Updated namespaces to reflect other Fish-Networking namespaces.
Expand Down
2 changes: 1 addition & 1 deletion FishNet/Plugins/Bayou/Core/ServerSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void _server_onConnect(int clientId)
if (_server == null || !_server.Active)
return;

if (_clients.Count > _maximumClients)
if (_clients.Count >= _maximumClients)
_server.KickClient(clientId);
else
_remoteConnectionEvents.Enqueue(new RemoteConnectionEvent(true, clientId));
Expand Down
2 changes: 1 addition & 1 deletion FishNet/Plugins/Bayou/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3
1.2.4

0 comments on commit fbcdfc8

Please sign in to comment.