Turn server protocol & Consistency Changes

This commit is contained in:
Murat Dogan
2019-12-16 21:12:59 +03:00
parent 5fc6a1c8ad
commit 432be41b9a
3 changed files with 12 additions and 9 deletions

View File

@ -22,7 +22,7 @@ namespace rtc {
using std::to_string;
IceServer::IceServer(const string &host) : type(Type::STUN) {
IceServer::IceServer(const string &host) : type(Type::Stun) {
if (size_t pos = host.rfind(':'); pos != string::npos) {
hostname = host.substr(0, pos);
service = host.substr(pos + 1);
@ -36,7 +36,7 @@ IceServer::IceServer(const string &hostname_, uint16_t port_)
: IceServer(hostname_, to_string(port_)) {}
IceServer::IceServer(const string &hostname_, const string &service_)
: hostname(hostname_), service(service_), type(Type::STUN) {}
: hostname(hostname_), service(service_), type(Type::Stun) {}
IceServer::IceServer(const string &hostname_, const string &service_, Type type_, string username_,
string password_, RelayType relayType_)