From bbcf3776ce685845836a4b49300fdcd0bc04b165 Mon Sep 17 00:00:00 2001 From: Luke Young Date: Wed, 29 Jul 2015 13:24:58 -0700 Subject: [PATCH] Add IPv6 Support to get_internal_ip_webrtc command This update adds support for IPv6 to the RTCPeerConnection revealing internal IPv6 addresses as well. --- modules/host/get_internal_ip_webrtc/command.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/host/get_internal_ip_webrtc/command.js b/modules/host/get_internal_ip_webrtc/command.js index b3f6b46d0..e0e87f1b8 100755 --- a/modules/host/get_internal_ip_webrtc/command.js +++ b/modules/host/get_internal_ip_webrtc/command.js @@ -15,7 +15,8 @@ beef.execute(function() { // Construct RTC peer connection var servers = {iceServers:[]}; - var rtc = new RTCPeerConnection(servers); + var mediaConstraints = {optional:[{googIPv6: true}]}; + var rtc = new RTCPeerConnection(servers, mediaConstraints); rtc.createDataChannel('', {reliable:false}); // Upon an ICE candidate being found