Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make services running on the frontend and advertised through Bonjour …
…to listen to all interfaces

It was previously only listening on the address used to communicate with the backend
  • Loading branch information
jyavenard committed Apr 16, 2012
1 parent e7adbb6 commit da49b57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythairplayserver.cpp
Expand Up @@ -329,7 +329,7 @@ void MythAirplayServer::Start(void)
int baseport = m_setupPort;
while (m_setupPort < baseport + AIRPLAY_PORT_RANGE)
{
if (listen(m_setupPort))
if (listen(QNetworkInterface::allAddresses(), m_setupPort, false))
{
LOG(VB_GENERAL, LOG_INFO, LOC +
QString("Listening for connections on port %1")
Expand Down
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/mythraopdevice.cpp
@@ -1,6 +1,7 @@
#include <QTimer>
#include <QtEndian>
#include <QTcpSocket>
#include <QNetworkInterface>

#include "mthread.h"
#include "mythlogging.h"
Expand Down Expand Up @@ -131,7 +132,7 @@ void MythRAOPDevice::Start(void)
int baseport = m_setupPort;
while (m_setupPort < baseport + RAOP_PORT_RANGE)
{
if (listen(m_setupPort))
if (listen(QNetworkInterface::allAddresses(), m_setupPort, false))
{
LOG(VB_GENERAL, LOG_INFO, LOC +
QString("Listening for connections on port %1").arg(m_setupPort));
Expand Down

0 comments on commit da49b57

Please sign in to comment.