mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
- NetworkInterface Windows improvements (detect broadcast address rather than calculate it)
- site-local IPv6 prefix (RFC4291) NOTE: other platforms compilation still broken (WIP)
This commit is contained in:
@@ -549,7 +549,7 @@ public:
|
||||
bool isSiteLocal() const
|
||||
{
|
||||
const UInt16* words = reinterpret_cast<const UInt16*>(&_addr);
|
||||
return (ntohs(words[0]) & 0xFFE0) == 0xFEC0;
|
||||
return ((ntohs(words[0]) & 0xFFE0) == 0xFEC0) || ((ntohs(words[0]) & 0xFF00) == 0xFC00);
|
||||
}
|
||||
|
||||
bool isIPv4Compatible() const
|
||||
|
Reference in New Issue
Block a user