tor-browser

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

ports.sub.js (385B)


      1 // The file including this must also include /common/get-host-info.sub.js to
      2 // pick up the necessary constants.
      3 
      4 const HOST = get_host_info().ORIGINAL_HOST;
      5 const PORT = '{{ports[webtransport-h3][0]}}';
      6 const BASE = `https://${HOST}:${PORT}`;
      7 
      8 // Create URL for WebTransport session.
      9 export function webtransport_url(handler) {
     10  return `${BASE}/webtransport/handlers/${handler}`;
     11 }