From 83739b3185720d0b2957cf4e3e5e4049d8229482 Mon Sep 17 00:00:00 2001 From: Johnson Lu Date: Thu, 27 Apr 2023 01:04:18 -0700 Subject: [PATCH] [Connections] Switch to use P2P IPv6 address PiperOrigin-RevId: 527502244 --- connections/implementation/proto/offline_wire_formats.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/connections/implementation/proto/offline_wire_formats.proto b/connections/implementation/proto/offline_wire_formats.proto index 17ecdbaf..4fe839d5 100644 --- a/connections/implementation/proto/offline_wire_formats.proto +++ b/connections/implementation/proto/offline_wire_formats.proto @@ -255,6 +255,10 @@ message BandwidthUpgradeNegotiationFrame { optional int32 port = 3; optional int32 frequency = 4; optional string gateway = 5 [default = "0.0.0.0"]; + // IPv6 link-local address, network order (128bits). + // The GO should listen on both IPv4 and IPv6 addresses. + // https://en.wikipedia.org/wiki/Link-local_address#IPv6 + optional bytes ip_v6_address = 6; } // Accompanies Medium.WEB_RTC