108 Commits
Author SHA1 Message Date
kulikov0 a26b555572 bump to v0.5.1 2026-11-07 12:08:55 +01:00
kulikov0 4ad375bf00 add dc backpressure to all platforms 2026-11-07 11:41:31 +01:00
kulikov0 a96e29c2e5 blink: rtc v1 with signal resume 2026-11-06 19:12:45 +01:00
kulikov0 755e053a55 hide socks password in desktop joiner logs, restore window size 2026-11-04 10:43:27 +01:00
kulikov0 a46e58d060 bump to v0.5.0 2026-10-31 12:29:43 +01:00
kulikov0 ec5b7527d4 match browser requests for vk auth 2026-10-31 11:06:57 +01:00
kulikov0 0fc8cc3be8 kcp for vk 2026-10-30 18:09:57 +01:00
kulikov0 558bb4438f add blink to desktop joiner 2026-10-30 14:16:56 +01:00
kulikov0 412531861b blink for ios-proxy app 2026-10-30 12:33:29 +01:00
kulikov0 66cba1a228 add blink to android 2026-10-25 13:43:28 +01:00
kulikov0 95f22d464b extract shared dial helpers for headless joiners 2026-10-25 12:45:32 +01:00
kulikov0 e0e82f5212 add blink to creator app 2026-10-25 12:13:04 +01:00
kulikov0 a1bc54dd62 add chat creation for blink creator 2026-10-22 14:09:51 +02:00
kulikov0 6176f4eaf5 add refresh token logic for blink 2026-10-22 12:57:59 +02:00
kulikov0 0eb1e66838 add blink headless creator and joiner 2026-10-20 10:50:22 +02:00
kulikov0 7c19a7ec40 bump to v0.4.4 2026-09-22 13:33:40 +02:00
kulikov0 ad8635fd91 revert wbstream refresh logic 2026-09-22 09:31:56 +02:00
kulikov0 98312a5965 bump to v0.4.3 2026-09-21 14:04:44 +02:00
kulikov0 69de2bd8b7 share vp8 config push and ice resolve, fix vk ice hosts, widen kick greps 2026-09-19 17:59:54 +02:00
kulikov0 2f366b1128 add --allow-loopback for docker, bot and creator app 2026-09-18 22:08:55 +02:00
kulikov0 94feaa4a53 fix udp on android and dc-creator, reuse relaybridge 2026-09-18 22:08:01 +02:00
kulikov0 ac5d890970 move webrtc tunnels to relay/tunnel/rtc, unblock gomobile bind 2026-09-18 22:07:10 +02:00
kulikov0 799146771a bump to v0.4.2 2026-09-16 17:04:14 +02:00
kulikov0 1cf840756a panic at vk server topology, add vk to e2e 2026-09-16 16:43:50 +02:00
kulikov0 0cb812677a change UA to chrome 151 2026-09-16 14:49:26 +02:00
kulikov0 76e2d8b1cf fix wbstream token rotation 2026-09-16 13:49:12 +02:00
kulikov0 9810dff788 bump to v0.4.1 2026-09-15 18:26:58 +02:00
kulikov0 d171a757aa add --allow-private-dst support for docker, bot and creator app 2026-09-15 18:04:12 +02:00
kulikov0 ca0966bc33 handle csrf, fix json unmarshall 2026-09-14 00:37:08 +02:00
kulikov0 afabeb4c17 update setup.md, fix rename over bind-mount in docker 2026-09-13 21:56:45 +02:00
kulikov0 4d6b3e24f6 update release version 2026-09-13 12:28:45 +02:00
kulikov0 d13bdc9058 repair builds after merge 2026-09-12 22:16:31 +02:00
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
kulikov0 88a0b5f1b9 repair ack, refactor e2e tests 2026-09-12 20:36:19 +02:00
kulikov0 97c4d4b617 wire bx to other platforms 2026-09-11 14:39:57 +02:00
kulikov0 c3070210bc extend vp8 idle keepalive 2026-09-10 17:53:06 +02:00
kulikov0 cdf37997bf add custom resources support for bitrix creator 2026-09-09 21:48:52 +02:00
kulikov0 0c2f96addc bitrix dual track support 2026-09-09 17:40:05 +02:00
kulikov0 5690cf58a9 add bitrix support 2026-09-07 21:14:11 +02:00
Sbenazar 747f8f2312 stop the creator dialing private/internal destinations (#175)
connectTCP and dialCreatorUDP dialed whatever address came over the tunnel, so a joiner could make the creator reach its own LAN, loopback or the metadata ip at 169.254.169.254. dc mode had the same hole so the check lives in common now, all three paths call it. i block everything that isn't global unicast plus RFC1918 and cgnat, and ":80" too - empty host dials the local machine. names get checked inside Dialer.Control, per resolved address right before connect, so a re-resolve can't rebind past it and the dialer keeps its address fallback. with an upstream socks the name is resolved proxy-side, so there only the literal is mine to check. --allow-private-dst brings the old behaviour back.
2026-09-03 20:20:52 +02:00
kulikov0 1b506b9ee7 ios vpn app 2026-09-03 14:35:47 +02:00
kulikov0 b2cb0cbd42 cleanup dead code, update gitignore 2026-08-31 23:36:16 +02:00
kulikov0 da3bf64efc Merge branch 'main' of github.com:kulikov0/whitelist-bypass 2026-08-31 23:05:10 +02:00
kulikov0 7f603bdb24 add dual track support for tm 2026-08-31 22:58:17 +02:00
06866244cb Stop two idle tickers from spinning when there is nothing to send (#170)
* tunnel: stop spinning idle tickers in the vp8 writer and kcp update loop

Two hot loops woke the CPU constantly even with no traffic in the tunnel.

vp8tunnel writerLoop: sampleInterval is (1s / fps) / pacedBatch, so the
default fps=24 batch=30 gives 1.54ms - 648 ticks per second. With an empty
send queue the loop still woke on every tick just to bump idleTicks; a real
frame only goes out every keepaliveEvery ticks (~9/s), so ~639 wakeups per
second did nothing but keep the core out of deep sleep. With dualTrack there
are two such writers.

The loop now has two phases. While data flows nothing changes - the ticker
holds the frame pace and the traffic shape is identical. After 40 consecutive
empty ticks (~60ms) the ticker stops and the goroutine blocks on a select over
the send queue and a keepalive timer; incoming data returns it to pace at once.
Gaps shorter than 60ms are still ridden out on the ticker, so bursty transfers
do not flap between modes.

multi_track_kcp_tunnel updateLoop: same shape, a fixed 10ms ticker calling
Update 100 times a second regardless of traffic. While idle WaitSnd() is zero
across every session, so there is nothing to retransmit. The loop keeps 10ms
while segments are in flight and drops to 500ms once idle; sends and receives
nudge it back through a buffered channel, so the first packet after silence is
not delayed.

Measured with relay/benchidle (single track, 30s of pure idle):

                        before   after
  vp8 only              2.47 %   0.14 %
  vp8 + reliable KCP    2.95 %   0.15 %

The second row is the typical mobile client configuration.

* tunnel: add an idle emission-rate test

Measures both halves of what an idle tunnel costs: frames put on the wire per
second, and CPU burned by the writer. The frame rate is the number that matters
on a phone, since every frame is a packet that keeps the radio awake.

Single track, 30s idle window:

                              frames/s   cpu
  original                    7.9        2.155 %
  patched, same keepalive     7.7        0.154 %
  patched, keepalive 3-8s     0.2        0.007 %

The middle row is the limit of the loop fix on its own - CPU drops 14x while
the packet rate barely moves, because idle traffic is driven by the keepalive
period rather than by the ticker.

* avoid waking the kcp update loop on udp sends, cleanup

---------

Co-authored-by: jynk0 <106554291+Jynk0_btw@users.noreply.github.com>
Co-authored-by: kulikov0 <19497634+kulikov0@users.noreply.github.com>
2026-08-30 10:54:41 +02:00
kulikov0 d7b43786ca call DrainSenderRTCP in remaining carriers 2026-08-26 17:36:08 +02:00
kulikov0 5f4d0636fa bring kcp to tm, fix disconnections 2026-08-25 21:54:29 +02:00
kulikov0 0f9f908874 do inplace rewrite for dion cookies to fix docker's EBUSY 2026-07-31 15:32:30 +02:00
kulikov0 d470aaee9b bump to v0.3.8 2026-07-26 22:50:27 +02:00
kulikov0 2bad03c542 fix config ack, add randomness for keyframes and interframes 2026-07-26 20:30:48 +02:00