aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tools: bump wg-goHEADmasterJason A. Donenfeld2023-10-222-12/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: bump goJason A. Donenfeld2023-10-181-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: use record class where possibleJason A. Donenfeld2023-07-051-26/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: bump to api 34Jason A. Donenfeld2023-07-051-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: add quotes around calling packageJason A. Donenfeld2023-06-081-1/+1
| | | | | | Judging by the previous check, this was clearly intended. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: account for recent magisk using UID in sqlJason A. Donenfeld2023-06-061-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: reformat all codeJason A. Donenfeld2023-05-051-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: use matching fallback instead of build typeJason A. Donenfeld2023-05-051-3/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: use += when possibleJason A. Donenfeld2023-05-031-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: don't encourage sticking credentials in filesJason A. Donenfeld2023-05-031-6/+2
| | | | | | | We've only ever used this via environment variables, so keep it that way. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: reabstract package nameJason A. Donenfeld2023-05-031-4/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: remove runtime detection of play storeJason A. Donenfeld2023-05-041-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: use Java 17Jason A. Donenfeld2023-05-031-2/+2
| | | | | | It appears to work, even on API 21. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: move JVM target up to 11Harsh Shandilya2023-05-031-2/+2
| | | | | | 1.8 is being deprecated across the board Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: convert build files to KotlinHarsh Shandilya2023-05-033-154/+129
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: export latest handshake statJason A. Donenfeld2023-04-243-42/+74
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: build elf-cleaner using system compilerJason A. Donenfeld2023-04-211-1/+1
| | | | | | | | | | Rather than using the NDK compiler for the host arch and hoping it picks up on system library locations, just use `cc` and rely on the traditional symlink to resolve that to the default host compiler. This should address build errors seen on macOS. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: ndk-compat: NDK now is minimum API 19Jason A. Donenfeld2023-04-132-58/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: do not put vcs info into go binaryJason A. Donenfeld2023-04-121-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: bump goJason A. Donenfeld2023-04-111-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: do not keep service running when bringing tunnel downJason A. Donenfeld2023-04-111-0/+3
| | | | | | | | Doing so causes the process to restart when the activity is cleared, even when no tunnel is running. I fear this might also lead to the current flurry of DeadSystemExceptions. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: clean compile options a bitJason A. Donenfeld2023-04-111-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: clean unwanted ELF flags from binariesJason A. Donenfeld2023-04-052-0/+13
| | | | | | | | | | Fixes warnings on old Android, such as: linker : /data/data/com.wireguard.android/code_cache/bin/wg-quick: unsupported flags DT_FLAGS_1=0x8000001 linker : /data/data/com.wireguard.android/code_cache/bin/wg: unsupported flags DT_FLAGS_1=0x8000001 Reported-by: L.W.Reek <syphyr@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: deduplicate cmake argumentsJason A. Donenfeld2023-04-051-4/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: remove cmake dependency hackJason A. Donenfeld2023-04-052-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: add missing CLOCK_BOOTTIME case to mips64xL.W.Reek2023-04-051-5/+14
| | | | | Signed-off-by: L.W.Reek <syphyr@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: pass -Wl,--build-id=none and -buildid= to toolchainJason A. Donenfeld2023-04-042-2/+4
| | | | | | | | Unfortunately, we need to fix this up in both the Makefile and in CMake, because add_link_options doesn't immediately reflect on the CMake variables in scope. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: use NDK's make binary rather than system'sJason A. Donenfeld2023-03-281-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: opt into new publishing APIsHarsh Shandilya2023-03-281-0/+5
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: raise target SDK to 33Harsh Shandilya2023-03-241-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: compile with latest NDKJason A. Donenfeld2023-03-223-13/+7
| | | | | | The -mthumb -> -marm hack is unfortunate. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: use __ANDROID_MIN_SDK_VERSION__ instead of __ANDROID_API__Jason A. Donenfeld2023-03-222-4/+4
| | | | | | The latter is deprecated. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright dateJason A. Donenfeld2023-03-2130-30/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: update to gradle 7.4.2 and restructure lint blockJason A. Donenfeld2023-03-211-3/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: bump depsJason A. Donenfeld2023-03-215-53/+54
| | | | | | | Notably, this isn't bumping to the latest wireguard-go master, which is still in flux. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* gradle: adjust for and raise compileSdk to 33SlipkHunter2023-01-201-1/+1
| | | | | Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: migrate to namespace attributeHarsh Shandilya2023-01-202-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* gradle: force the use of an older NDK versionSlipkHunter2023-01-201-0/+1
| | | | | | | | | | | NDK 25.x removed the bundled ld.gold/ld.bfd linkers, replacing them with the ld.ldd linker from LLVM. This causes the toolchains to pick up the host OS' `ld.gold` instead, which does not know how to link ARM(64) code and fails the build. Fixes: f269fb175dd7 ("gradle: update AndroidX and Kotlin") Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: un-export VpnServiceHwanseung Lee2022-12-011-1/+1
| | | | | | | | | There is no reason to expose this service to external apps.[1] [1] https://developer.android.com/guide/topics/manifest/activity-element#exported Signed-off-by: Hwanseung Lee <hwanseung@chromium.org> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: bump depsJason A. Donenfeld2022-05-164-16/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: move target SDK to 31Shahzain Ali2022-04-262-3/+4
| | | | | Signed-off-by: Shahzain Ali <shahzainali93@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tools: bump wireguard-go and go 1.18Jason A. Donenfeld2022-03-204-27/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: fix BadConfigExceptionTestMichal Murin2022-02-091-1/+1
| | | | | | | | Fix the test by changing the DNS to a string with an invalid char in the `invalid-value.conf` test configuration file. Signed-off-by: Michal Murin <michal.murin@jamf.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ToolsInstaller: set id=wireguard magisk module paramJason A. Donenfeld2022-01-211-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tools: bump libwg-goJason A. Donenfeld2021-10-295-24/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright yearJason A. Donenfeld2021-10-2930-30/+30
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: remove kernel module downloaderJason A. Donenfeld2021-10-293-2723/+4
| | | | | | | | Nathan Chance dropped the ball repeatedly and never maintained this in a consistent way that anybody could use. With Android 12 out now, just drop it all together. A bummer, but I don't see much of a choice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: make JSR305 annotations a compileOnly dependencyHarsh Shandilya2021-10-281-1/+1
| | | | | | These have no business being part of the runtime classpath of this library Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: bump to work on x86_64 architectureJason A. Donenfeld2021-09-262-6/+6
| | | | | | | | | | | | | Bionic bans poll, so switch to ppoll. Folks were experiencing crashes on ChromeOS. We're waiting for https://go-review.googlesource.com/c/sys/+/352310 to be merged, but for now we rely on https://git.zx2c4.com/wireguard-go/commit/?id=fcc601dbf0f6b626ec1d47a880cbe64f9c8fe385 Reported-by: Rodrigo Alexandre <rdrslv00@gmail.com> Reported-by: Mace Moneta <moneta.mace@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui,tunnel: support DNS search domainsJason A. Donenfeld2021-09-253-2/+49
| | | | | | | | wg-quick has supported this for a while, but not the config layer, and not the Go backend, so wire this all up. Requested-by: Alexis Geoffrey <alexis.geoffrey97@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>