Merge pull request #222 from seragh/server-mtu

Fix MTU negotiation on server side
This commit is contained in:
Lee Salzman 2023-03-10 14:01:19 -05:00 committed by GitHub
commit eb89a34d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -384,6 +384,7 @@ enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENet
if (mtu > ENET_PROTOCOL_MAXIMUM_MTU)
mtu = ENET_PROTOCOL_MAXIMUM_MTU;
if (mtu < peer -> mtu)
peer -> mtu = mtu;
if (host -> outgoingBandwidth == 0 &&