From ae594724ec1d3d51e322fa75404a221279383f63 Mon Sep 17 00:00:00 2001 From: Holger Cremer Date: Thu, 4 Jan 2018 22:00:22 +0100 Subject: [PATCH] changing the response for LocallyAdministered macs --- mqtt/mqtt.go | 8 ++++---- webUI/templates/index.html | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/mqtt/mqtt.go b/mqtt/mqtt.go index 97b2492..b78cea9 100644 --- a/mqtt/mqtt.go +++ b/mqtt/mqtt.go @@ -109,7 +109,7 @@ func (h *MqttHandler) onConnect(client mqtt.Client) { err := subscribe(client, TOPIC_SESSIONS, func(client mqtt.Client, message mqtt.Message) { mqttLogger.Debug("new wifi sessions") - ///* + /* mock := []byte(`{ "38134": { "last-auth": 1509211121, "vlan": "default", @@ -138,10 +138,10 @@ func (h *MqttHandler) onConnect(client mqtt.Client) { "last-rssi-dbm": -48, "last-activity": 1509211584 }}`) - //*/ + */ select { - case h.newDataChan <- mock: - //case h.newDataChan <- message.Payload(): + //case h.newDataChan <- mock: + case h.newDataChan <- message.Payload(): break default: mqttLogger.Println("No one receives the message.") diff --git a/webUI/templates/index.html b/webUI/templates/index.html index 172d131..9229c7c 100644 --- a/webUI/templates/index.html +++ b/webUI/templates/index.html @@ -43,15 +43,15 @@ {{if .isLocallyAdministered }}
- {{end}} -{{if not .isLocallyAdministered}} {{if not .macNotFound}}
@@ -116,7 +116,6 @@
{{end}} -{{end}}