diff --git a/src/ports.rs b/src/ports.rs index ba5ae9e..0baa3d7 100644 --- a/src/ports.rs +++ b/src/ports.rs @@ -21,7 +21,7 @@ use tracing::{debug, error, info, instrument, warn}; use crate::{ constants::{CACHE_STORE_INTERVAL, PORT_OWNERSHIP_TIMEOUT, PORT_RETRY_TIME}, - packets::{Packet, PacketKind}, + packets::Packet, spawn, Config, Number, Port, UnixTimestamp, }; @@ -302,17 +302,10 @@ impl Serialize for Rejector { S: Serializer, { let packet = &self.state.1; - let kind = match packet.kind() { - PacketKind::End => "end", - PacketKind::Reject => "reject", - _ => unreachable!(), - }; match packet.as_string() { - Some(string) if string.chars().all(|c| !c.is_control()) => { - (kind, string).serialize(serializer) - } - _ => (kind, packet.data()).serialize(serializer), + Some(string) if string.chars().all(|c| !c.is_control()) => string.serialize(serializer), + _ => packet.data().serialize(serializer), } } } diff --git a/web/index.html b/web/index.html index 7ca1ae9..6bf77bb 100644 --- a/web/index.html +++ b/web/index.html @@ -10,10 +10,22 @@
- - - -Nummer | +Port | +Zustand | +Name | +Meldung | +Letzte Änderung | +
---|