erase fingerprints (#177)

* add external modules and patches

* migrate pion webrtc to vendored headlessclient, drop local pion replaces

* use chrome ice credentials, one webrtc api per peer connection

* send one user agent everywhere, use the vendored websocket

* route the telemost joiner through headlessclient, drop the dead keylog

* answer telemost dtls without a hello verify round trip

* follow the headlessclient dtls 1.3 mimicry rename

* follow the headless-client rename and apply the profile before the caller settings

* build every webrtc api through relay/headlessapi

* register chrome rtp header extensions for every pion consumer

* dial vk webtransport signaling through the headless quic profile

* dial dion and wb stream through the headless chrome profile

* announce chrome's http/3 settings on the vk webtransport signaling

* send chrome header blocks on bitrix http and livekit websocket

* send chrome's webtransport connect headers on vk signaling

* stop passing invented track names to the library

* move wbp http paths onto the headlessclient profile

* migrate to a published headlessclient

* dedup go.mod
This commit is contained in:
kulikov0 authored and GitHub committed 2026-09-12 20:39:06 +02:00
1 parent 88a0b5f1b9
commit a735b4176e
71 files changed
+571 -2140

No files matched your search

+8 -7
View File
@@ -6,7 +6,6 @@ import (
"flag"
"fmt"
"log"
"net/http"
"net/url"
"os"
"runtime/debug"
@@ -15,8 +14,9 @@ import (
"time"
"github.com/google/uuid"
"github.com/gorilla/websocket"
"github.com/pion/webrtc/v4"
"github.com/kulikov0/headless-client"
"github.com/kulikov0/headless-client/webrtc"
"github.com/kulikov0/headless-client/websocket"
"whitelist-bypass/relay/common"
tmapi "whitelist-bypass/relay/telemost"
"whitelist-bypass/relay/tunnel"
@@ -206,7 +206,7 @@ func (b *Bridge) sendHello() {
"participantId": b.connInfo.PeerID, "roomId": b.connInfo.RoomID,
"serviceName": b.connInfo.ServiceName, "credentials": b.connInfo.Credentials,
"capabilitiesOffer": tmapi.CapabilitiesOffer,
"sdkInfo": map[string]interface{}{"implementation": "browser", "version": b.config.SDKVersion, "userAgent": common.UserAgent, "hwConcurrency": 8},
"sdkInfo": map[string]interface{}{"implementation": "browser", "version": b.config.SDKVersion, "userAgent": headless.ChromeWindows.UserAgent(), "hwConcurrency": 8},
"sdkInitializationId": uuid.New().String(),
"disablePublisher": false, "disableSubscriber": false, "disableSubscriberAudio": false,
},
@@ -782,13 +782,14 @@ func (b *Bridge) run() {
fmt.Println(" join_link:", b.connInfo.ConferenceURI)
fmt.Printf(" protocol: sdk %s app %s\n\n", b.config.SDKVersion, b.config.AppVersion)
wsHeader := http.Header{}
wsHeader.Set("User-Agent", common.UserAgent)
wsHeader := headless.ChromeWindows.Headers(headless.DestWebSocket)
wsHeader.Set("Origin", tmOrigin)
dialer := headless.ChromeWindows.WebSocketDialer(headless.TLSOptions{})
for {
log.Println("[tm-ws] Connecting...")
ws, _, err := websocket.DefaultDialer.Dial(b.connInfo.MediaServerURL, wsHeader)
ws, _, err := dialer.Dial(b.connInfo.MediaServerURL, wsHeader)
if err != nil {
log.Printf("[tm-ws] Connect failed: %s, retrying in 5s...", common.MaskError(err))
time.Sleep(5 * time.Second)