mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:57:10 +02:00
Merge pull request #1959 from birarda/authentication
default domain is root again
This commit is contained in:
commit
d743df902a
4 changed files with 10 additions and 6 deletions
BIN
interface/resources/meshes/defaultAvatar_body.fbx
Normal file
BIN
interface/resources/meshes/defaultAvatar_body.fbx
Normal file
Binary file not shown.
BIN
interface/resources/meshes/defaultAvatar_head.fbx
Normal file
BIN
interface/resources/meshes/defaultAvatar_head.fbx
Normal file
Binary file not shown.
|
@ -1828,6 +1828,9 @@ void Application::init() {
|
||||||
}
|
}
|
||||||
qDebug("Loaded settings");
|
qDebug("Loaded settings");
|
||||||
|
|
||||||
|
// fire off an immediate domain-server check in now that settings are loaded
|
||||||
|
NodeList::getInstance()->sendDomainServerCheckIn();
|
||||||
|
|
||||||
// Set up VoxelSystem after loading preferences so we can get the desired max voxel count
|
// Set up VoxelSystem after loading preferences so we can get the desired max voxel count
|
||||||
_voxels.setMaxVoxels(Menu::getInstance()->getMaxVoxels());
|
_voxels.setMaxVoxels(Menu::getInstance()->getMaxVoxels());
|
||||||
_voxels.setUseVoxelShader(Menu::getInstance()->isOptionChecked(MenuOption::UseVoxelShader));
|
_voxels.setUseVoxelShader(Menu::getInstance()->isOptionChecked(MenuOption::UseVoxelShader));
|
||||||
|
|
|
@ -27,7 +27,7 @@ const char SOLO_NODE_TYPES[2] = {
|
||||||
NodeType::AudioMixer
|
NodeType::AudioMixer
|
||||||
};
|
};
|
||||||
|
|
||||||
const QString DEFAULT_DOMAIN_HOSTNAME = "alpha.highfidelity.io";
|
const QString DEFAULT_DOMAIN_HOSTNAME = "root.highfidelity.io";
|
||||||
const unsigned short DEFAULT_DOMAIN_SERVER_PORT = 40102;
|
const unsigned short DEFAULT_DOMAIN_SERVER_PORT = 40102;
|
||||||
|
|
||||||
NodeList* NodeList::_sharedInstance = NULL;
|
NodeList* NodeList::_sharedInstance = NULL;
|
||||||
|
@ -59,7 +59,7 @@ NodeList* NodeList::getInstance() {
|
||||||
NodeList::NodeList(char newOwnerType, unsigned short int newSocketListenPort) :
|
NodeList::NodeList(char newOwnerType, unsigned short int newSocketListenPort) :
|
||||||
_nodeHash(),
|
_nodeHash(),
|
||||||
_nodeHashMutex(QMutex::Recursive),
|
_nodeHashMutex(QMutex::Recursive),
|
||||||
_domainHostname(DEFAULT_DOMAIN_HOSTNAME),
|
_domainHostname(),
|
||||||
_domainSockAddr(HifiSockAddr(QHostAddress::Null, DEFAULT_DOMAIN_SERVER_PORT)),
|
_domainSockAddr(HifiSockAddr(QHostAddress::Null, DEFAULT_DOMAIN_SERVER_PORT)),
|
||||||
_nodeSocket(this),
|
_nodeSocket(this),
|
||||||
_ownerType(newOwnerType),
|
_ownerType(newOwnerType),
|
||||||
|
@ -498,7 +498,7 @@ void NodeList::sendDomainServerCheckIn() {
|
||||||
static bool printedDomainServerIP = false;
|
static bool printedDomainServerIP = false;
|
||||||
|
|
||||||
// Lookup the IP address of the domain server if we need to
|
// Lookup the IP address of the domain server if we need to
|
||||||
if (_domainSockAddr.getAddress().isNull()) {
|
if (_domainSockAddr.getAddress().isNull() && !_domainHostname.isEmpty()) {
|
||||||
qDebug("Looking up DS hostname %s.", _domainHostname.toLocal8Bit().constData());
|
qDebug("Looking up DS hostname %s.", _domainHostname.toLocal8Bit().constData());
|
||||||
QHostInfo domainServerHostInfo = QHostInfo::fromName(_domainHostname);
|
QHostInfo domainServerHostInfo = QHostInfo::fromName(_domainHostname);
|
||||||
|
|
||||||
|
@ -527,8 +527,8 @@ void NodeList::sendDomainServerCheckIn() {
|
||||||
// we don't know our public socket and we need to send it to the domain server
|
// 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
|
// send a STUN request to figure it out
|
||||||
sendSTUNRequest();
|
sendSTUNRequest();
|
||||||
} else {
|
} else if (!_domainSockAddr.getAddress().isNull()) {
|
||||||
// construct the DS check in packet if we need to
|
// construct the DS check in packet if we can
|
||||||
|
|
||||||
// check in packet has header, optional UUID, node type, port, IP, node types of interest, null termination
|
// check in packet has header, optional UUID, node type, port, IP, node types of interest, null termination
|
||||||
QByteArray domainServerPacket = byteArrayWithPopluatedHeader(PacketTypeDomainListRequest);
|
QByteArray domainServerPacket = byteArrayWithPopluatedHeader(PacketTypeDomainListRequest);
|
||||||
|
@ -807,7 +807,8 @@ void NodeList::loadData(QSettings *settings) {
|
||||||
|
|
||||||
if (domainServerHostname.size() > 0) {
|
if (domainServerHostname.size() > 0) {
|
||||||
_domainHostname = domainServerHostname;
|
_domainHostname = domainServerHostname;
|
||||||
emit domainChanged(_domainHostname);
|
} else {
|
||||||
|
_domainHostname = DEFAULT_DOMAIN_HOSTNAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
Loading…
Reference in a new issue