diff options
author | Lee Salzman <[email protected]> | 2023-04-01 14:49:22 -0400 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2023-04-01 14:49:22 -0400 |
commit | 8ae0e85298fafdb20777b4eb4241218f52f775b0 (patch) | |
tree | 607a8e171f9d085ccfbf88f9a80022ccb64bba99 /host.c | |
parent | 07a40ef0f9e5355d422f271da9a115219d0e9308 (diff) | |
download | enet-8ae0e85298fafdb20777b4eb4241218f52f775b0.tar.gz enet-8ae0e85298fafdb20777b4eb4241218f52f775b0.zip |
update connecting peer's mtu from host's current mtu
Diffstat (limited to 'host.c')
-rw-r--r-- | host.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -211,6 +211,7 @@ enet_host_connect (ENetHost * host, const ENetAddress * address, size_t channelC currentPeer -> state = ENET_PEER_STATE_CONNECTING; currentPeer -> address = * address; currentPeer -> connectID = enet_host_random (host); + currentPeer -> mtu = host -> mtu; if (host -> outgoingBandwidth == 0) currentPeer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE; |