Skip to content

Commit cfda9dc

Browse files
committed
Enhance NetworkGraph and NetworkView components with port and protocol tracking
- Added support for incoming and outgoing ports, as well as protocols, to the NetworkNode interface. - Updated NetworkGraph to display ports and protocols in a unified grid format. - Improved layout and rendering of device information, including user and tags, in the NetworkGraph. - Enhanced NetworkView to track and categorize port and protocol information from traffic data.
1 parent 9266f41 commit cfda9dc

File tree

3 files changed

+404
-47
lines changed

3 files changed

+404
-47
lines changed

backend/internal/services/tailscale.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type Device struct {
4545
Blocksincomingnonnodes bool `json:"blocksIncomingnonnodes"`
4646
EnabledRoutes []string `json:"enabledRoutes"`
4747
AdvertisedRoutes []string `json:"advertisedRoutes"`
48+
Tags []string `json:"tags"`
4849
}
4950

5051
type DevicesResponse struct {
@@ -218,6 +219,7 @@ func (ts *TailscaleService) GetDevices() (*DevicesResponse, error) {
218219
Blocksincomingnonnodes: device.BlocksIncomingConnections,
219220
EnabledRoutes: device.EnabledRoutes,
220221
AdvertisedRoutes: device.AdvertisedRoutes,
222+
Tags: device.Tags,
221223
})
222224
}
223225

0 commit comments

Comments
 (0)