Fix udptest (#10199)

* Fix

* Reformat

* Fix tcp read

* Fix verify
This commit is contained in:
DHR60
2026-09-19 06:42:51 +00:00
committed by GitHub
parent 2fbe81041b
commit e6e95e00d7
5 changed files with 142 additions and 120 deletions
@@ -31,10 +31,7 @@ public class StunService : IUdpTest
if (stunResponseBytes.Length >= 2)
{
var messageType = (stunResponseBytes[0] << 8) | stunResponseBytes[1];
if (messageType is 0x0101 or 0x0111)
{
return true;
}
return messageType is 0x0101 or 0x0111;
}
return true;