mirror of
https://github.com/sascha-hemi/spaceDevices.git
synced 2026-03-21 04:06:18 +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,
|
err := subscribe(client, TOPIC_SESSIONS,
|
||||||
func(client mqtt.Client, message mqtt.Message) {
|
func(client mqtt.Client, message mqtt.Message) {
|
||||||
mqttLogger.Debug("new wifi sessions")
|
mqttLogger.Debug("new wifi sessions")
|
||||||
///*
|
/*
|
||||||
mock := []byte(`{ "38134": {
|
mock := []byte(`{ "38134": {
|
||||||
"last-auth": 1509211121,
|
"last-auth": 1509211121,
|
||||||
"vlan": "default",
|
"vlan": "default",
|
||||||
@@ -138,10 +138,10 @@ func (h *MqttHandler) onConnect(client mqtt.Client) {
|
|||||||
"last-rssi-dbm": -48,
|
"last-rssi-dbm": -48,
|
||||||
"last-activity": 1509211584
|
"last-activity": 1509211584
|
||||||
}}`)
|
}}`)
|
||||||
//*/
|
*/
|
||||||
select {
|
select {
|
||||||
case h.newDataChan <- mock:
|
//case h.newDataChan <- mock:
|
||||||
//case h.newDataChan <- message.Payload():
|
case h.newDataChan <- message.Payload():
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
mqttLogger.Println("No one receives the message.")
|
mqttLogger.Println("No one receives the message.")
|
||||||
|
|||||||
@@ -43,15 +43,15 @@
|
|||||||
{{if .isLocallyAdministered }}
|
{{if .isLocallyAdministered }}
|
||||||
<div class="container info-problem">
|
<div class="container info-problem">
|
||||||
|
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning">
|
||||||
Deine Mac Adresse wird zufällig generiert, daher kannst du dafür keinen Namen eingeben. Bei Windows 10 kann man
|
Achtung, deine Mac Adresse wird zufällig generiert. Evt. ändert die sich bei jeder Verbindung.
|
||||||
das angeblich ändern.
|
<br>
|
||||||
|
Bei Windows 10 kann man das ändern, indem du das Netzwerk "Privat" und "Öffentlich" ist.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if not .isLocallyAdministered}}
|
|
||||||
{{if not .macNotFound}}
|
{{if not .macNotFound}}
|
||||||
<div class="container mac-update">
|
<div class="container mac-update">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -116,7 +116,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
Reference in New Issue
Block a user