1 Commits

Author SHA1 Message Date
b545b99135 FIx wrong Description 2021-12-13 13:33:02 +01:00
2 changed files with 2 additions and 8 deletions

View File

@@ -256,7 +256,7 @@ Variable|Description
Variable|Default|Description
---|---|---
`LOGLEVEL` | INFO | Loglevel
`WIFI_INTERFACE` | wlan0 | Token with write-access
`WIFI_INTERFACE` | wlan0 | Wifi-Interface name in Monitor-Mode
~~`HOSTNAME`~~ | ~~Device's Hostname~~ | ~~Hostname to use as global hostname-tag~~ *(Unused)*
<br>

View File

@@ -47,14 +47,8 @@ class PacketStreamFactory extends Transform{
}
_transform(chunk, encoding, next){
if(!chunk){
const err = "Chunk was invalid!";
logger.error(err);
next(err);
}
let packet = new Packet();
const lines = chunk.split("\n");
const header = lines.splice(0, 1)[0]; // Grab first line, "lines" is now the payload
packet = this._handleHeader(packet, header);