Change RemoteIo bind ip from local host to any
This would allow other software to contact with Dust3D without limit on the same machine, however, the user still need to enable it by command line "-remoteio".master
parent
ea63a5ecd0
commit
0a6736b9d2
|
@ -25,4 +25,5 @@ Ruben Niculcea <https://github.com/RubenSandwich>
|
|||
boynet <https://dust3d.discourse.group/u/boynet>
|
||||
fornclake <https://www.reddit.com/user/fornclake>
|
||||
bvanevery <https://www.reddit.com/user/bvanevery>
|
||||
Toshio Araki <https://github.com/Toshiwoz>
|
||||
Toshio Araki <https://github.com/Toshiwoz>
|
||||
Evan Gruda <evangruda@ufl.edu>
|
|
@ -25,6 +25,7 @@ Python Example
|
|||
# e.g.
|
||||
# $ open ./dust3d.app --args -remoteio
|
||||
# $ ./dust3d -remoteio
|
||||
# $ ./dust3d.AppImage -remoteio
|
||||
|
||||
import socket
|
||||
import binascii
|
||||
|
|
|
@ -58,7 +58,7 @@ void RemoteIoServer::sessionOpened()
|
|||
}
|
||||
|
||||
m_tcpServer = new QTcpServer(this);
|
||||
if (!m_tcpServer->listen(QHostAddress::LocalHost, m_listenPort)) {
|
||||
if (!m_tcpServer->listen(QHostAddress::Any, m_listenPort)) {
|
||||
qDebug() << "Unable to listen on remote io port, error:" << m_tcpServer->errorString();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue