From d7873ef7ea1bd1417843f0daac96815e3eb546ad Mon Sep 17 00:00:00 2001
From: Paolo Asperti <paolo@asperti.com>
Date: Thu, 15 Sep 2016 10:55:06 +0200
Subject: [PATCH] fix epoptes format

---
 root/usr/share/doraemon/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/root/usr/share/doraemon/index.php b/root/usr/share/doraemon/index.php
index 5ec8d65..ae2f3bf 100644
--- a/root/usr/share/doraemon/index.php
+++ b/root/usr/share/doraemon/index.php
@@ -143,7 +143,7 @@ function ROUTE_epoptes_srv() {
         echo 'none';
     } else {
         $host = array_pop($hosts);
-        echo json_encode($host);
+        echo $host['name'];
     }
 }