mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 02:04:32 +01:00
changing the response for LocallyAdministered macs
This commit is contained in:
@@ -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.")
|
||||
|
||||
@@ -43,15 +43,15 @@
|
||||
{{if .isLocallyAdministered }}
|
||||
<div class="container info-problem">
|
||||
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Deine Mac Adresse wird zufällig generiert, daher kannst du dafür keinen Namen eingeben. Bei Windows 10 kann man
|
||||
das angeblich ändern.
|
||||
<div class="alert alert-warning">
|
||||
Achtung, deine Mac Adresse wird zufällig generiert. Evt. ändert die sich bei jeder Verbindung.
|
||||
<br>
|
||||
Bei Windows 10 kann man das ändern, indem du das Netzwerk "Privat" und "Öffentlich" ist.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if not .isLocallyAdministered}}
|
||||
{{if not .macNotFound}}
|
||||
<div class="container mac-update">
|
||||
<div class="row">
|
||||
@@ -116,7 +116,6 @@
|
||||
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user