Module: check_mk
Branch: master
Commit: 8dd6f24507a6a815f9a2bbf6bc3958e3c7a86ab1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8dd6f24507a6a8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun May 6 18:47:33 2012 +0200
FIX: detect non-local site even if unix: is being used
---
ChangeLog | 1 +
web/htdocs/config.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7fc7250..917f731 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
WATO:
* ps and ps.perf configurable via WATO now (without inventory)
* FIX: honor folder-permissions when creating, deleting and modifiying rules
+ * FIX: detect non-local site even if unix: is being used
Multisite:
* FIX: fixed filter of recent event views (4 hours didn't catch)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index db8955b..39767b7 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -441,7 +441,7 @@ def site(name):
def site_is_local(name):
s = sites.get(name, {})
sock = s.get("socket")
- return not sock or sock.startswith("unix:")
+ return not sock or sock == defaults.livestatus_unix_socket
def is_multisite():
if len(sites) > 1: