Note that other code for webrtc already has it: https://searchfox.org/mozilla-central/rev/38c88cbf4be87dfa0636d15a5d3599a8ea0d1a72/media/mtransport/third_party/nICEr/src/net/transport_addr.c#525-526
Bug 1570104 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Note that other code for webrtc already has it: https://searchfox.org/mozilla-central/rev/38c88cbf4be87dfa0636d15a5d3599a8ea0d1a72/media/mtransport/third_party/nICEr/src/net/transport_addr.c#525-526 When the range get added, the following test should also be extended: https://searchfox.org/mozilla-central/source/netwerk/test/unit/test_hostnameIsLocalIPAddress.js