From a8cc565bafa400cab6cadd74275d8dd8918a6332 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 18 Nov 2014 13:43:49 -0800 Subject: [PATCH] set the default hostname for GVRInterface client --- gvr-interface/src/GVRInterface.cpp | 2 ++ libraries/networking/src/NodeList.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gvr-interface/src/GVRInterface.cpp b/gvr-interface/src/GVRInterface.cpp index c69c556b25..4927090e65 100644 --- a/gvr-interface/src/GVRInterface.cpp +++ b/gvr-interface/src/GVRInterface.cpp @@ -20,6 +20,8 @@ GVRInterface::GVRInterface(int argc, char* argv[]) : connect(&nodeList->getNodeSocket(), &QUdpSocket::readyRead, this, &GVRInterface::processDatagrams); + nodeList->getDomainHandler().setHostname(DEFAULT_DOMAIN_HOSTNAME); + QTimer* domainServerTimer = new QTimer(this); connect(domainServerTimer, &QTimer::timeout, nodeList, &NodeList::sendDomainServerCheckIn); domainServerTimer->start(DOMAIN_SERVER_CHECK_IN_MSECS); diff --git a/libraries/networking/src/NodeList.cpp b/libraries/networking/src/NodeList.cpp index d0728b0bb5..73a63077e9 100644 --- a/libraries/networking/src/NodeList.cpp +++ b/libraries/networking/src/NodeList.cpp @@ -268,7 +268,6 @@ bool NodeList::processSTUNResponse(const QByteArray& packet) { } void NodeList::sendDomainServerCheckIn() { - qDebug() << "SEND DOMAIN SERVER CHECK IN"; if (_publicSockAddr.isNull() && !_hasCompletedInitialSTUNFailure) { // we don't know our public socket and we need to send it to the domain server // send a STUN request to figure it out @@ -277,8 +276,6 @@ void NodeList::sendDomainServerCheckIn() { handleICEConnectionToDomainServer(); } else if (!_domainHandler.getIP().isNull()) { - qDebug() << "SENDING A CHECK IN TO" << _domainHandler.getIP().toString(); - bool isUsingDTLS = false; PacketType domainPacketType = !_domainHandler.isConnected()