7a60f948ae
Thanks to @alabiaga and @marcelpinto for help with improvements for Android 12. https://github.com/DrKLO/Telegram/pull/1633 https://github.com/DrKLO/Telegram/pull/1636 https://github.com/DrKLO/Telegram/pull/1630
22 lines
564 B
C++
22 lines
564 B
C++
#include "TurnCustomizerImpl.h"
|
|
|
|
#include "api/transport/stun.h"
|
|
|
|
namespace tgcalls {
|
|
|
|
TurnCustomizerImpl::TurnCustomizerImpl() {
|
|
}
|
|
|
|
TurnCustomizerImpl::~TurnCustomizerImpl() {
|
|
}
|
|
|
|
void TurnCustomizerImpl::MaybeModifyOutgoingStunMessage(cricket::PortInterface* port, cricket::StunMessage* message) {
|
|
message->AddAttribute(std::make_unique<cricket::StunByteStringAttribute>(cricket::STUN_ATTR_SOFTWARE, "Telegram "));
|
|
}
|
|
|
|
bool TurnCustomizerImpl::AllowChannelData(cricket::PortInterface* port, const void *data, size_t size, bool payload) {
|
|
return true;
|
|
}
|
|
|
|
}
|