mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Services: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
b579d9518c
commit
35c98a031a
11 changed files with 13 additions and 13 deletions
|
@ -114,9 +114,9 @@ ErrorOr<size_t> MulticastDNS::emit_packet(Packet const& packet, sockaddr_in cons
|
|||
|
||||
Vector<IPv4Address> MulticastDNS::local_addresses() const
|
||||
{
|
||||
auto file = Core::File::construct("/proc/net/adapters");
|
||||
auto file = Core::File::construct("/sys/kernel/net/adapters");
|
||||
if (!file->open(Core::OpenMode::ReadOnly)) {
|
||||
dbgln("Failed to open /proc/net/adapters: {}", file->error_string());
|
||||
dbgln("Failed to open /sys/kernel/net/adapters: {}", file->error_string());
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue