Make the server bind to localhost. We don't really want to expose it to the world, and it pops up firewall warnings if you have an app aware firewall enabled (e.g. OSX firewall).
This commit is contained in:
parent
4b044ccf93
commit
fc56a13a6b
|
@ -12,7 +12,7 @@ Server::Server(QObject *parent, bool ignoreSslErrors) : QObject(parent) {
|
|||
|
||||
bool Server::start() {
|
||||
connect(m_tcp_server, SIGNAL(newConnection()), this, SLOT(handleConnection()));
|
||||
return m_tcp_server->listen(QHostAddress::Any, 0);
|
||||
return m_tcp_server->listen(QHostAddress::LocalHost, 0);
|
||||
}
|
||||
|
||||
quint16 Server::server_port() const {
|
||||
|
|
Loading…
Reference in New Issue