Fix sequence error with our webrtc sctp support.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6232 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2022-04-17 19:46:52 +00:00
parent 7f649df33e
commit 1636db0c6d

View file

@ -1677,7 +1677,7 @@ static neterr_t SCTP_Transmit(sctp_t *sctp, struct icestate_s *peer, const void
init->arwc = BigLong(65535);
init->numoutstreams = BigShort(2);
init->numinstreams = BigShort(2);
init->tsn = sctp->o.tsn;
init->tsn = BigLong(sctp->o.tsn);
ftsn->ptype = BigShort(49152);
ftsn->plen = BigShort(sizeof(*ftsn));
pktlen += sizeof(*init) + sizeof(*ftsn);
@ -2936,7 +2936,7 @@ static void FTENET_ICE_Establish(ftenet_ice_connection_t *b, int cl, struct ices
usewebrtc = false;
#else
if (!*net_ice_usewebrtc.string)
usewebrtc = b->generic.islisten; //its broken for clients right now, apparently. don't break browsers connecting to servers though.
usewebrtc = b->generic.islisten;
else
usewebrtc = net_ice_usewebrtc.ival;
#endif