This commit is contained in:
jdl
2025-09-25 09:08:10 +02:00
parent 3d93c0206c
commit 29bbb442c8
6 changed files with 9 additions and 28 deletions

View File

@@ -10,6 +10,7 @@ import (
)
type StatusReport struct {
LocalPeerIP byte
Network []byte
RelayPeerIP byte
Remotes []RemoteStatus
@@ -32,8 +33,9 @@ func runStatusServer(g Globals, socketPath string) {
handler := func(w http.ResponseWriter, r *http.Request) {
report := StatusReport{
Network: g.Network,
Remotes: make([]RemoteStatus, 0, 255),
LocalPeerIP: g.LocalPeerIP,
Network: g.Network,
Remotes: make([]RemoteStatus, 0, 255),
}
relay := g.RelayHandler.Load()