mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Server: small refactor
This commit is contained in:
parent
da05f315be
commit
8dfe471ef2
@ -113,12 +113,14 @@ void WSServer::onNewConnection()
|
||||
_clients << pSocket;
|
||||
_clMutex.unlock();
|
||||
|
||||
QByteArray client_ip = pSocket->peerAddress().toString().toUtf8();
|
||||
blog(LOG_INFO, "new client connection from %s:%d", client_ip.constData(), pSocket->peerPort());
|
||||
QHostAddress clientAddr = pSocket->peerAddress();
|
||||
QString clientIp = clientAddr.toString();
|
||||
|
||||
blog(LOG_INFO, "new client connection from %s:%d", clientIp.toUtf8().constData(), pSocket->peerPort());
|
||||
|
||||
QString msg = QString(obs_module_text("OBSWebsocket.ConnectNotify.ClientIP"))
|
||||
+ QString(" ")
|
||||
+ pSocket->peerAddress().toString();
|
||||
+ clientAddr.toString();
|
||||
|
||||
Utils::SysTrayNotify(msg, QSystemTrayIcon::Information, QString(obs_module_text("OBSWebsocket.ConnectNotify.Title")));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user