Commit Graph

930 Commits

Author SHA1 Message Date
Erik Ekman 55640a0e9a Update bsd runner base machine 2024-07-16 10:57:06 +02:00
Erik Ekman 7ec5efeb55 Try newer bsd runners
Old one seems to reboot vm over and over until it times out.
2024-07-16 10:46:40 +02:00
Erik Ekman fb7081aba4 Update changelog 2024-07-15 23:56:55 +02:00
Erik Ekman 2c7940cf77 Fix clang warning
"a function declaration without a prototype is deprecated in all versions of C"
2024-07-15 23:54:25 +02:00
Erik Ekman 6be47466f2 Try to include relevant parts of macos if_utun.h
To compile without it (pre 10.6)

See bug #98
2024-07-15 23:46:22 +02:00
Erik Ekman ec5c89a368
Merge pull request #93 from ffontaine/master
src/osflags: fully fix cross-compilation
2023-11-30 00:29:17 +01:00
Erik Ekman fc174d5e37 Bump github checkout action version
"The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2."
2023-11-30 00:26:17 +01:00
Erik Ekman 3b1d3a5d4c
Merge pull request #95 from mmuman/haiku-fixes
Haiku fixes
2023-11-30 00:17:17 +01:00
François Revol 39c3154a77 Haiku has daemon() in libbsd 2023-11-18 18:20:22 +01:00
François Revol 8ba813f08e osflags: on Haiku, require BSD headers and lib 2023-11-18 18:19:14 +01:00
Fabrice Fontaine a5d71d0761 src/osflags: fully fix cross-compilation
Cross-compilation was only partially fixed by
024481c94b
as selinux was still enabled depending on host file existence

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2023-11-02 23:03:15 +01:00
Erik Ekman b82bc776b3 Fix openbsd action pkg_add command 2023-04-20 14:24:45 +02:00
Erik Ekman 057be6ce64 Add openbsd github action 2023-04-20 14:19:10 +02:00
Erik Ekman 3a4a69f50d Add git, pkgconf to freebsd action 2023-04-20 14:02:52 +02:00
Erik Ekman ba3f0cacb5 Update freebsd check pkg name 2023-04-20 13:50:17 +02:00
Erik Ekman d28e8f76ae Add freebsd github action 2023-04-20 13:42:51 +02:00
Erik Ekman b20b4f6fae Update changelog 2023-04-20 13:32:20 +02:00
Erik Ekman 8b78300e99
Merge pull request #86 from spmzt/tzsetwall-freebsd
Build Issue on FreeBSD: tzsetwall() is deprecated, use tzset() instead.
2023-04-20 13:20:21 +02:00
Pouria Mousavizadeh Tehrani 9262863cae
tzsetwall() is deprecated, use tzset() instead.
/usr/ports/net/iodine/work/iodine-0.8.0/src/iodined.c:2757: warning: warning: tzsetwall() is deprecated, use tzset() instead.
2023-04-19 00:21:08 +03:30
Erik Ekman 6145eeab73 Bump date in manpage 2023-04-17 10:26:14 +02:00
Erik Ekman 309a1371e8 Update changelog after release 2023-04-17 09:59:47 +02:00
Erik Ekman a7ba8ed0b3 Hack zlib paths for windows binary 2023-04-17 09:50:04 +02:00
Erik Ekman df49fd6f3d Update changelog 2022-07-18 23:36:07 +02:00
Erik Ekman 3cb6a1eec2 user: Expand newip char array
Avoid warning
../src/user.c:66:17: note: ‘snprintf’ output between 8 and 18 bytes into a destination of size 16
2022-07-18 23:35:54 +02:00
Erik Ekman 17169e3444 tun: Add openvpn componentid prefix
Some drivers use root prefix. See https://patchwork.openvpn.net/patch/555/

Hopefully helping with bugs #46 and #73.
2022-07-18 23:31:13 +02:00
Erik Ekman 1df7d235f5
Merge pull request #61 from NilsIrl/makefile_cd
Use `make -C <dir>` instead of (cd <dir> && make)
2021-10-11 00:10:53 +02:00
Nils c74618ae9e Use `make -C <dir>` instead of (cd <dir> && make)
* fixes the build for some people #57
* cleaner and more idiomatic
2021-10-10 17:40:33 +01:00
Erik Ekman 25867f20b4 readme: Reword the multiple domain section
Using the same host was repeated
2021-08-29 14:56:25 +02:00
Erik Ekman b004723a28 readme: Update markdown format
Remove backslash

Add note that all domains should point to the same host (will be assumed
later)
2021-08-29 13:54:48 +02:00
Erik Ekman 0032ffa055
readme: Add IPv6 DNS setup example 2021-08-25 22:18:38 +02:00
Erik Ekman 3818a59541 util: Remove duplicate assignments of rv to NULL 2021-08-25 22:05:19 +02:00
Erik Ekman 853d5f3764 Update CHANGELOG 2021-08-25 22:00:11 +02:00
Erik Ekman 95fde8b3ee Handle wildcard prefix of allowed tunnel domain names 2021-08-25 01:24:58 +02:00
Erik Ekman f1e7823a3d Add helper for matching topdomain and getting data length 2021-08-25 01:13:48 +02:00
Erik Ekman 589027568b Add option to allow wildcard as start of topdomain 2021-08-24 23:32:57 +02:00
Erik Ekman f09dadb1ed test: Replace assert_msg(strcmp(),...) with str_eq
str_eq will print the strings in case of failure:

Assertion '"BB." == buf' failed: "BB." == "BB.", buf == "BA."
2021-08-24 23:10:26 +02:00
Erik Ekman 5388eae1df test/common: Use ck_assert_str_eq to verify strings
Requires check 0.9.6, released Dec 2008

Also reset error ptr between checks.
2021-08-24 23:04:32 +02:00
Erik Ekman 6e4107a93b Avoid make recursing in case a directory is missing 2021-08-18 12:36:20 +02:00
Erik Ekman f5a82afe29 Initialize get_resolvconf_addr variable rv to NULL
Getting warning compiling for Android:

./util.c:35:6: warning: variable 'rv' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        if (sscanf(buf, "%15s", addr) == 1)
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./util.c:79:9: note: uninitialized use occurs here
        return rv;
               ^~
2021-08-16 15:06:02 +02:00
Erik Ekman cfd0b07e1f Attempt to do cross-android build in CI 2021-08-16 14:58:20 +02:00
Erik Ekman 569a86a140 Fix Android cross-compile
./common.h:136:29: error: unknown type name 'va_list'
 void vwarn(const char *fmt, va_list list);
                             ^
2021-08-16 14:45:02 +02:00
Erik Ekman cb6cbecba1 Make it clearer that iodine is asking for a password
To not confuse it with sudo or similar
2021-08-16 10:34:41 +02:00
Erik Ekman 348aee839a
Merge pull request #55 from yarrick/win-ci
Add github CI action for Windows
2021-08-16 09:36:20 +02:00
Erik Ekman d00eba8df2 Add github CI action for Windows
Hardcode TARGETOS to make it work.
2021-08-16 09:31:55 +02:00
Erik Ekman 8afcf4fb8d Add github CI action for macOS 2021-08-11 09:40:35 +02:00
Erik Ekman f19948b6cf Fix ubuntu CI test target 2021-08-11 09:36:53 +02:00
Erik Ekman aa5819fe35
Add github CI action for ubuntu 2021-08-11 09:35:05 +02:00
Erik Ekman 1684aa3806 Travis is dead 2021-08-11 09:28:33 +02:00
Erik Ekman ee623a2d84 Rework handling of IPv6 address failures
Skip IPv6 on any error getting the default address (::) if IPv6 is not
explicitly chosen.
2021-08-11 09:23:03 +02:00
Erik Ekman 43a82ef6be Print getaddrinfo failure properly 2021-08-09 13:42:49 +02:00