Update STUN server

This commit is contained in:
Kalila L 2020-09-20 17:56:54 -04:00
parent 61d12c6641
commit f465ecb53b
2 changed files with 12 additions and 4 deletions

View file

@ -4,6 +4,7 @@
// //
// Created by Stephen Birarda on 2/15/13. // Created by Stephen Birarda on 2/15/13.
// Copyright 2013 High Fidelity, Inc. // Copyright 2013 High Fidelity, Inc.
// Copyright 2020 Vircadia contributors.
// //
// Distributed under the Apache License, Version 2.0. // Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@ -37,6 +38,7 @@
#include <SharedUtil.h> #include <SharedUtil.h>
#include "DomainHandler.h" #include "DomainHandler.h"
#include "NetworkingConstants.h"
#include "Node.h" #include "Node.h"
#include "NLPacket.h" #include "NLPacket.h"
#include "NLPacketList.h" #include "NLPacketList.h"
@ -55,8 +57,8 @@ static const size_t DEFAULT_MAX_CONNECTION_RATE { std::numeric_limits<size_t>::m
const char DEFAULT_ASSIGNMENT_SERVER_HOSTNAME[] = "localhost"; const char DEFAULT_ASSIGNMENT_SERVER_HOSTNAME[] = "localhost";
const char STUN_SERVER_HOSTNAME[] = "stun.highfidelity.io"; const char STUN_SERVER_HOSTNAME = NetworkingConstants::STUN_SERVER_DEFAULT_HOSTNAME.toUtf8().constData();
const unsigned short STUN_SERVER_PORT = 3478; const unsigned short STUN_SERVER_PORT = NetworkingConstants::STUN_SERVER_DEFAULT_PORT;
const QString DOMAIN_SERVER_LOCAL_PORT_SMEM_KEY = "domain-server.local-port"; const QString DOMAIN_SERVER_LOCAL_PORT_SMEM_KEY = "domain-server.local-port";
const QString DOMAIN_SERVER_LOCAL_HTTP_PORT_SMEM_KEY = "domain-server.local-http-port"; const QString DOMAIN_SERVER_LOCAL_HTTP_PORT_SMEM_KEY = "domain-server.local-http-port";

View file

@ -47,9 +47,15 @@ namespace NetworkingConstants {
const QString PUBLIC_BUCKET_CDN_URL = "https://hifi-public.s3.amazonaws.com/"; const QString PUBLIC_BUCKET_CDN_URL = "https://hifi-public.s3.amazonaws.com/";
#if USE_STABLE_GLOBAL_SERVICES #if USE_STABLE_GLOBAL_SERVICES
const QString ICE_SERVER_DEFAULT_HOSTNAME = "ice.highfidelity.com"; const QString ICE_SERVER_DEFAULT_HOSTNAME = "ice.vircadia.com";
const QString STUN_SERVER_DEFAULT_HOSTNAME = "stun1.l.google.com";
const unsigned short STUN_SERVER_DEFAULT_PORT = 19302;
#else #else
const QString ICE_SERVER_DEFAULT_HOSTNAME = "dev-ice.highfidelity.com"; const QString ICE_SERVER_DEFAULT_HOSTNAME = "ice.vircadia.com";
const QString STUN_SERVER_DEFAULT_HOSTNAME = "stun2.l.google.com";
const unsigned short STUN_SERVER_DEFAULT_PORT = 19302;
#endif #endif
const QString MARKETPLACE_CDN_HOSTNAME = "mpassets.highfidelity.com"; const QString MARKETPLACE_CDN_HOSTNAME = "mpassets.highfidelity.com";