aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-03-25 19:48:14 +0100
committerMartijn Kaijser <martijn@xbmc.org>2016-03-25 19:48:14 +0100
commit3e97d79aace97df38ffb8a9348d614b8db048ceb (patch)
treee572d1fcb82f67ac92532dbe112b447327fd93dc
parent3a056a3b2a816f7d5f370346eb491ac3ebfe2995 (diff)
parent366ad1e7c425d0ab86cbcc3dd3a594d03142cd9f (diff)
Merge pull request #9249 from Tolriq/Jarvis
[Backport] EventServer security fix.
-rw-r--r--xbmc/network/EventServer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/network/EventServer.cpp b/xbmc/network/EventServer.cpp
index b91549cfd7..472b421ed3 100644
--- a/xbmc/network/EventServer.cpp
+++ b/xbmc/network/EventServer.cpp
@@ -157,6 +157,9 @@ void CEventServer::Run()
CSocketListener listener;
int packetSize = 0;
+ if (!CSettings::GetInstance().GetBool(CSettings::SETTING_SERVICES_ESALLINTERFACES))
+ any_addr.SetAddress("127.0.0.1"); // only listen on localhost
+
CLog::Log(LOGNOTICE, "ES: Starting UDP Event server on %s:%d", any_addr.Address(), m_iPort);
Cleanup();