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 -9
View File
@@ -5,11 +5,12 @@ import (
"net/http"
"sync"
"github.com/gorilla/websocket"
"github.com/kulikov0/headless-client/webrtc"
"github.com/kulikov0/headless-client/websocket"
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/pion/webrtc/v4"
"whitelist-bypass/relay/common"
"whitelist-bypass/relay/telemost"
"whitelist-bypass/relay/tunnel"
)
@@ -68,12 +69,11 @@ func ParseICEServers(data json.RawMessage) ([]webrtc.ICEServer, error) {
return iceServers, nil
}
func NewPionAPI(localIP string) *webrtc.API {
se := webrtc.SettingEngine{}
se.SetNet(&common.AndroidNet{LocalIP: localIP})
func NewPionAPI(localIP string) (*webrtc.API, error) {
// Telemost SFU is DTLS-active for subscribers; Pion must answer passive.
se.SetAnsweringDTLSRole(webrtc.DTLSRoleServer)
return webrtc.NewAPI(webrtc.WithSettingEngine(se))
return telemost.NewAPI(func(settingEngine *webrtc.SettingEngine) {
settingEngine.SetNet(&common.AndroidNet{LocalIP: localIP})
})
}
type WSHelper struct {
@@ -146,11 +146,9 @@ func (h *WSHelper) ReadMessages(handler func([]byte), onDisconnect func()) {
func AddTunnelTracks(pc *webrtc.PeerConnection, logFn func(string, ...any), prefix string) *webrtc.TrackLocalStaticSample {
sampleTrack, _ := webrtc.NewTrackLocalStaticSample(
webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeVP8},
"video", "tunnel-video",
)
audioTrack, _ := webrtc.NewTrackLocalStaticRTP(
webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeOpus},
"audio", "tunnel-audio",
)
audioSender, audioErr := pc.AddTrack(audioTrack)
videoSender, videoErr := pc.AddTrack(sampleTrack)