Commit Graph
23 Commits
Author SHA1 Message Date
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 5f4d0636fa bring kcp to tm, fix disconnections 2026-08-25 21:54:29 +02:00
kulikov0 2bad03c542 fix config ack, add randomness for keyframes and interframes 2026-07-26 20:30:48 +02:00
kulikov0 2dbc6ea1eb fix vpn notification, add more logs under debug flag 2026-07-25 12:23:41 +02:00
kulikov0 d66be97922 reduce logs for non-debug runtime 2026-07-25 09:15:10 +02:00
kulikov0 f4714f93d6 return unreachable for ipv6 addresses to force ipv4 (#159) 2026-07-24 14:38:57 +02:00
kulikov0 a0229885ca bring kcp over vp8 (#160)
* bring kcp over vp8 for wbstream

* add multitrack kcp

* make kcp configurable param

* fix lingered kcp tunnel after switch into raw vp8 tunnel

* add reliable setting into ios and desktop joiners
2026-07-24 13:38:08 +02:00
kulikov0 b40c59651a second track for vk 2026-06-06 21:02:40 +02:00
kulikov0 94742960b7 refactor release files structure 2026-05-30 17:06:53 +02:00
kulikov0 000447b77c add upstream proxy support for creator 2026-05-30 15:39:12 +02:00
kulikov0 c9538d4193 port pr 106 stateful udp socks5, dedup nack, drop send queue to 128 2026-05-28 20:43:32 +02:00
kulikov0 5b98351e58 add dual track support for wbstream's vp8 2026-05-25 13:40:41 +02:00
kulikov0 cfb9b4c8f7 reconnect wbstream on a tunnel lost 2026-05-23 19:37:18 +02:00
kulikov0 b341370904 add wbstream auth support 2026-05-16 07:33:50 +02:00
kulikov0 7528f653e9 wire up dion tunneling 2026-05-14 23:34:21 +02:00
kulikov0 6adeb9ced3 fallback vp8 legacy tunnel to legacy webview approaches 2026-05-10 16:00:35 +02:00
kulikov0 3b3ffed0b3 wbstream support 2026-05-08 23:57:30 +02:00
kulikov0 b48b0cb927 VP8 pacing + traffic obfuscation in headless 2026-05-08 16:26:24 +02:00
kulikov0 265da4579c telemost reanimation 2026-05-07 14:56:33 +02:00
kulikov0 1b2d6bc5d3 v0.2.1 (#53)
* ios proxy app, tune vp8 tunnel

* refactor go modules, move headless joiner android to a go captcha

* restore emojis in vk bot keyboard

* headless support in vk bot

* remove telemost dc hooks, update cretor-app ui and bot

* remove telemost support from go code, add fallback to video if mode == dc in joiners

* fix headless creators in windows

* update vk call creation autoclick

* force desktop useragent for creator app

* kick disconnected user in headless vk creator immediately when connection is lost

* update README.md

* update SETUP.md

* update release version

* add fallback for link creation in vk bot
2026-04-19 17:47:36 +02:00
029b536250 V0.2.0 (#37)
* refactor go files, add headless telemost support

* js crap -> ts crap

* docker-build (#32)

Co-authored-by: Mimocro <suzumagefag@gmail.com>

* add headless telemost for creator app

* UX improvements (#39)

* Add search in split tunneling app list

* Add captcha detection

* Add autoclick settings

* headless vk joiner

* add headless telemost joiner

* refactor go modules

* redesign settings dialog

* headless option in settings

* headless joiner support in MainActivity

* display headless vk status in statusBar

* update ux for headless in creator app

* fix double log render for headless mode in creator

* unicode for cyrillic

* add socks auth

* put socksPort inf prefs, verify that port is free on start

* proxy only mode

* mask addresses in go network errors

* update docker build, add file write logic for headless

* increment release version, add make-release script

---------

Co-authored-by: kulikov <user@Mac.lan>
Co-authored-by: Mimocro <67226986+Mimocro@users.noreply.github.com>
Co-authored-by: Mimocro <suzumagefag@gmail.com>
Co-authored-by: senya <76913432+senya-sh@users.noreply.github.com>
2026-04-12 17:14:51 +02:00