From 35fe95802df52d8d2d6fdbee4278663076caaac7 Mon Sep 17 00:00:00 2001 From: Artem Titov Date: Fri, 2 Feb 2024 17:51:26 +0100 Subject: [PATCH] Add RTC_EXPORT for rtc::IPIsLinkLocal and rtc::IPIsLoopback Required to allow private IPv6 addresses in Chromium: https://crrev.com/c/5258983 Bug: chromium:323820219 Change-Id: I25fc931f00feda9bfa2f3b92317b4b4b064f6f69 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/337600 Reviewed-by: Harald Alvestrand Commit-Queue: Artem Titov Cr-Commit-Position: refs/heads/main@{#41664} --- rtc_base/ip_address.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtc_base/ip_address.h b/rtc_base/ip_address.h index 897e165565..c015206ab3 100644 --- a/rtc_base/ip_address.h +++ b/rtc_base/ip_address.h @@ -162,8 +162,8 @@ RTC_EXPORT bool IPFromString(absl::string_view str, int flags, InterfaceAddress* out); bool IPIsAny(const IPAddress& ip); -bool IPIsLoopback(const IPAddress& ip); -bool IPIsLinkLocal(const IPAddress& ip); +RTC_EXPORT bool IPIsLoopback(const IPAddress& ip); +RTC_EXPORT bool IPIsLinkLocal(const IPAddress& ip); // Identify a private network address like "192.168.111.222" // (see https://en.wikipedia.org/wiki/Private_network ) bool IPIsPrivateNetwork(const IPAddress& ip);