mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-23 06:50:36 +01:00
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;
|
||
|
}
|
||
|
|
||
|
}
|