Skip to content

Conversation

codewithtamim
Copy link

@codewithtamim codewithtamim commented Jul 16, 2025

PR type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other... Please describe:

PR checklist

Please check if your PR fulfills the following requirements:

  • I have read the CONTRIBUTING.md doc
  • I have added necessary documentation (if appropriate)
  • The Git workflow follows our guidelines: CONTRIBUTING.md#git

What is the current behavior?

Currently, WireGuard does not support obfuscation with V2Ray.

Issue number: #295

What is the new behavior?

WireGuard now supports obfuscation with V2Ray, including both VMESS over TCP and QUIC, for both single-hop and multi-hop configurations.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Fix build issue
OPT deprecated api `extractnativelibs` instead use ```kotlin
packaging {
        jniLibs {
            useLegacyPackaging = true
        }
    }
```
Update dependencies & Fix gradle Scripts
Add swig home brew path
Fix anchor
Remove package from manifest
Fix sdk and libs version
Add obs type
Update Api Models
Add libv2ray
Add config model
Add config construction logic
rename
Update
Tunnel
Fix
Up
Up
Works
# Conflicts:
#	core/src/main/java/com/wireguard/android/backend/GoBackend.java
#	core/src/main/java/net/ivpn/core/vpn/controller/V2rayController.kt
#	core/src/main/java/net/ivpn/core/vpn/wireguard/ConfigManager.kt
- Replace manual ServerSocket port checking with libV2ray.GetFreePorts()
- Remove unused isPortAvailable method and V2RAY_PORT_RANGE constant
- Improve error handling and logging for port allocation
- Use kernel-level port allocation for better reliability and performance
Fix port
Clean
Clean
Port thumbnail
@codewithtamim
Copy link
Author

codewithtamim commented Jul 16, 2025

@jurajhilje Please review the pr and check if both VMESS/QUIC and VMESS/TCP + Wireguard Single Hop And Multi Hop working perfectly or not. Also if there are inconsistencies or something missing maybe in UI ? then drop a message in this thread.

BTW it partially closes the pr #389, as it updated the dependencies and what just need to be done is update target sdk

@jurajhilje jurajhilje self-requested a review July 16, 2025 12:17
@jurajhilje jurajhilje self-assigned this Jul 16, 2025
@codewithtamim
Copy link
Author

@jurajhilje I see the builds are failing. For your information. You need to run the build.sh to build the aar binary for the v2ray core wrapper. The workflow currently is not doing that because of that its failing you can check the logs

@jurajhilje
Copy link
Member

@jurajhilje I see the builds are failing. For your information. You need to run the build.sh to build the aar binary for the v2ray core wrapper. The workflow currently is not doing that because of that its failing you can check the logs

Understood, I will update the workflow, thanks!

Update workflow.
@codewithtamim
Copy link
Author

@jurajhilje I see the builds are failing. For your information. You need to run the build.sh to build the aar binary for the v2ray core wrapper. The workflow currently is not doing that because of that its failing you can check the logs

Understood, I will update the workflow, thanks!

Anyways updated the workflow also to speedup the process

@codewithtamim
Copy link
Author

Build failed. Why are we building aar for the main project ?

@jurajhilje
Copy link
Member

Build failed. Why are we building aar for the main project ?

I need to check and update the build Action. Will let you know how it goes.

@codewithtamim
Copy link
Author

Build failed. Why are we building aar for the main project ?

I need to check and update the build Action. Will let you know how it goes.

Well we cant keep the aar in the core module as it will cause merge conflict of dex when assembling debug builds through gradlew. But you can test it by running the project simply that works. So I need find some solution for that which works

Fix Build issue
@codewithtamim
Copy link
Author

Works now

@codewithtamim codewithtamim changed the title Feature/v2ray obfuscation Obfuscation with V2Ray Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants