tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

1799168.html (671B)


      1 <script>
      2 window.addEventListener('load', async () => {
      3  const offerer = new RTCPeerConnection();
      4  const answerer = new RTCPeerConnection();
      5  offerer.addTransceiver('audio');
      6  await offerer.setLocalDescription();
      7  await answerer.setRemoteDescription(offerer.localDescription);
      8  const answer = await answerer.createAnswer();
      9  await offerer.setRemoteDescription(answer);
     10  // relay candidate with TCP!
     11  const candidate = 'candidate:3 1 tcp 18087935 20.253.151.225 3478 typ relay raddr 10.0.48.153 rport 3478 tcptype passive';
     12  await offerer.addIceCandidate({candidate, sdpMLineIndex: 0});
     13  await new Promise(r => setTimeout(r, 2000));
     14  self.close();
     15 })
     16 </script>