Files
whitelist-bypass/relay/pion/android/platform.go
T
kulikov0 a735b4176e 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
2026-09-12 20:39:06 +02:00

51 lines
1.1 KiB
Go

package android
import (
"bufio"
"fmt"
"os"
"strings"
"sync"
"github.com/kulikov0/headless-client/webrtc"
"whitelist-bypass/relay/common"
)
var stdinReader = bufio.NewReader(os.Stdin)
var stdinMu sync.Mutex
func ReadStdinLine() (string, error) {
stdinMu.Lock()
defer stdinMu.Unlock()
line, err := stdinReader.ReadString('\n')
if err != nil {
return "", err
}
return strings.TrimSpace(line), nil
}
func RequestResolve(hostname string) (string, error) {
stdinMu.Lock()
fmt.Printf("RESOLVE:%s\n", hostname)
stdinMu.Unlock()
line, err := ReadStdinLine()
if err != nil {
return "", fmt.Errorf("read resolve response: %w", err)
}
if line == "" {
return "", fmt.Errorf("empty resolve for %s", hostname)
}
return line, nil
}
type StatusEmitter struct{}
func (StatusEmitter) EmitStatus(status string) { common.EmitStatus(status) }
func (StatusEmitter) EmitStatusError(msg string) { common.EmitStatusError(msg) }
type PCConfigurer struct{}
func (PCConfigurer) ConfigureSettingEngine(settingEngine *webrtc.SettingEngine) {
settingEngine.SetNet(&common.AndroidNet{})
}