Skip to content

Commit 36b7cac

Browse files
famfonico
authored andcommitted
SystemMonitor: Display IPv6 addresses on adapters
1 parent e7fe821 commit 36b7cac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Userland/Applications/SystemMonitor/NetworkStatisticsWidget.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
6565
[](JsonObject const& object) -> ByteString {
6666
return object.get_byte_string("ipv4_address"sv).value_or(""sv);
6767
});
68+
net_adapters_fields.empend("IPv6"_string, Gfx::TextAlignment::CenterLeft,
69+
[](JsonObject const& object) -> ByteString {
70+
return object.get_byte_string("ipv6_address"sv).value_or(""sv);
71+
});
6872
net_adapters_fields.empend("packets_in", "Pkt In"_string, Gfx::TextAlignment::CenterRight);
6973
net_adapters_fields.empend("packets_out", "Pkt Out"_string, Gfx::TextAlignment::CenterRight);
7074
net_adapters_fields.empend("bytes_in", "Bytes In"_string, Gfx::TextAlignment::CenterRight);

0 commit comments

Comments
 (0)