Peers: optional latency check with per-peer setting
The server pings a peer's tunnel address every 30 s and shows the median of the last 5 minutes in the peer list (with a 1-hour sparkline) and a 24-hour chart on the peer page. Off by default; "active" pings only while the device sends traffic, "always" keeps the tunnel up.
This commit is contained in:
@@ -181,6 +181,20 @@ fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-d
|
||||
.chart .grp.on span.total { background: var(--down-strong); }
|
||||
.xaxis { display: flex; justify-content: space-between; margin: 8px 0 0 56px; font-size: 11px; color: var(--axis-ink); }
|
||||
.chart.loading { opacity: .5; }
|
||||
.chart .plot { position: absolute; left: 56px; right: 0; top: 0; bottom: 1px; }
|
||||
.chart .plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
|
||||
.chart .band, .key.band { fill: var(--down); background: var(--down); opacity: .2; }
|
||||
.chart .med { fill: none; stroke: var(--down); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
||||
.chart .cursor { stroke: var(--axis); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
||||
|
||||
/* latency in the peer list */
|
||||
.lat { display: inline-flex; vertical-align: middle; align-items: center; justify-content: flex-end; gap: 8px; }
|
||||
.lat .mono { min-width: 6ch; text-align: right; }
|
||||
.latnote { font-size: 12px; color: var(--ink-3); }
|
||||
.lat.stale, .latnote.stale { opacity: .5; }
|
||||
.spark { width: 56px; height: 18px; display: block; flex: none; }
|
||||
.spark polyline { fill: none; stroke: var(--down); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
|
||||
.spark circle { fill: var(--down); }
|
||||
|
||||
/* config / log blocks */
|
||||
pre.code, pre.log { margin: 0; padding: 14px; background: var(--ink); color: #e6e6e1; border-radius: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.6; overflow-x: auto; white-space: pre; }
|
||||
|
||||
Reference in New Issue
Block a user