Skip to content

Add TURN WRAP support for Android client - #44

Open
Haeniken wants to merge 2 commits into
kiper292:mainfrom
Haeniken:main
Open

Add TURN WRAP support for Android client#44
Haeniken wants to merge 2 commits into
kiper292:mainfrom
Haeniken:main

Conversation

@Haeniken

Copy link
Copy Markdown

Summary

Adds TURN WRAP support to the Android client.

This lets Android import and run vk-turn-proxy profiles that use WRAP encryption over DTLS, matching the server-side -wrap / -wrap-key mode.

Changes

  • Added UseWrap and WrapKeyHex TURN config fields.
  • Added import/export support via WireGuard config comments:
    • #@wgt:UseWrap = true
    • #@wgt:WrapKeyHex = <64-hex-key>
  • Added Android UI controls for enabling WRAP and entering the WRAP key.
  • Persisted WRAP settings in TurnSettingsStore.
  • Passed WRAP settings through Kotlin → Java → JNI → Go.
  • Implemented WRAP packet wrapping/unwrapping in the Go TURN client.
  • Validated WRAP usage:
    • requires DTLS mode
    • rejects wireguard/no-DTLS mode
    • requires a 64-character hex key
  • Bumped app version to 2.2.21.
  • Fixed release APK rename path in the release workflow.

Testing

  • Built successfully with GitHub Actions
  • Generated and imported Android WRAP profiles
  • Verified WRAP connection works against existing vk-turn-proxy WRAP server.

@Haeniken

Haeniken commented Jun 1, 2026

Copy link
Copy Markdown
Author

Будет работать с серверной стороной https://github.com/Moroka8/vk-turn-proxy

Также PR для серверной стороны kiper292/vk-turn-proxy#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant