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

+7 -1
View File
@@ -14,6 +14,7 @@ import (
"time"
"github.com/google/uuid"
"github.com/kulikov0/headless-client"
"whitelist-bypass/relay/common"
)
@@ -132,6 +133,11 @@ func (s *Session) setBaseHeaders(req *http.Request, accessToken string) {
req.Header.Set("Referer", Origin+"/")
req.Header.Set("Accept", "*/*")
req.Header.Set("Accept-Language", "en")
for name, values := range headless.ChromeWindows.Headers(headless.DestEmpty) {
if strings.HasPrefix(name, "Sec-Fetch-") {
req.Header[name] = values
}
}
req.Header.Set("X-Request-Id", uuid.New().String())
for name, value := range deviceHeaders(s.Device) {
req.Header.Set(name, value)
@@ -168,7 +174,7 @@ func NewSession(httpClient *http.Client) (*Session, error) {
if err != nil {
return nil, fmt.Errorf("cookiejar: %w", err)
}
httpClient = &http.Client{Jar: jar}
httpClient = &http.Client{Jar: jar, Transport: headless.ChromeWindows.HTTPClient().Transport}
} else if httpClient.Jar == nil {
jar, err := cookiejar.New(nil)
if err != nil {