vibechat: single-instance (QLockFile) + переименование Chat→vibechat (бинарник, конфиг, hostname node name)
This commit is contained in:
1 parent
f82dca3185
commit
f347dc8edc
7 files changed
+35
-21
No files matched your search
@@ -169,7 +169,7 @@ void NodeConfig::generateIdentity() {
|
||||
bool NodeConfig::create(const QString& nodeName, quint16 listenPort) {
|
||||
if (nodeName.isEmpty()) {
|
||||
QString host = QHostInfo::localHostName();
|
||||
m_nodeName = host.isEmpty() ? "chatgui" : host;
|
||||
m_nodeName = host.isEmpty() ? "vibechat" : host;
|
||||
} else {
|
||||
m_nodeName = nodeName;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user