Permalink
Browse files

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 da49b57ac4a07da69b558b8b2660fa7963c9e238
Showing with 3 additions and 2 deletions.
  1. +1 −1 mythtv/libs/libmythtv/mythairplayserver.cpp
  2. +2 −1 mythtv/libs/libmythtv/mythraopdevice.cpp
@@ -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")
@@ -1,6 +1,7 @@
#include <QTimer>
#include <QtEndian>
#include <QTcpSocket>
+#include <QNetworkInterface>
#include "mthread.h"
#include "mythlogging.h"
@@ -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));

0 comments on commit da49b57

Please sign in to comment.