mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Define IPv6Address::loopback(), the IPv6 loopback address '::1'
This commit is contained in:
parent
43a8a38f57
commit
10aed80b29
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/peterbb Commit: https://github.com/SerenityOS/serenity/commit/10aed80b29 Pull-request: https://github.com/SerenityOS/serenity/pull/19139 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/gmta
1 changed files with 6 additions and 0 deletions
|
@ -251,6 +251,12 @@ public:
|
|||
return {};
|
||||
}
|
||||
|
||||
// https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.3
|
||||
[[nodiscard]] static IPv6Address loopback()
|
||||
{
|
||||
return IPv6Address({ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 });
|
||||
}
|
||||
|
||||
private:
|
||||
constexpr u16 group(unsigned i) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue