我做:
configuration = {
iceServers: [
{
urls: [
'stun:stun1.l.google.com:19302',
],
},
],
iceCandidatePoolSize: 10,
};
local_conn = new RTCPeerConnection(configuration);
local_offer = await local_conn.createOffer()
local_conn.setLocalDescription(local_offer)
console.log(local_conn)
{type: "offer", sdp: "v=0 ↵o=- 5782587598134818591 2 IN IP4 127.0.0.1 ↵s=- ↵t=0 0 ↵a=msid-semantic: WMS ↵"}
在IP4 127.0.0.1中,为什么它是127.0.0.1,而不是像151.101.1.69那样的外部ip?
ICE候选者包括IP地址信息。