4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-14 19:46:05 +00:00
Commit Graph

182 Commits

Author SHA1 Message Date
9defa35c66 Merge branch 'develop' into future 2023-09-03 13:18:47 +01:00
c8b9aaeb67 Only set mobile memory limit on supported Go versions 2023-09-03 13:13:53 +01:00
6ab0639b82 Merge branch 'develop' into future 2023-09-03 12:58:55 +01:00
db9b57c052 Update contrib/mobile for the latest iOS build 2023-06-06 22:11:49 +01:00
7afa23be4c Link refactoring, admin socket changes 2023-05-19 19:09:05 +01:00
c7ea223a9a Update mobile bindings 2023-05-14 10:16:33 +01:00
5e95246c26 update to ironwood v0.0.0-20230513191034-495699d87ae4 with API changes 2023-05-13 14:44:38 -05:00
a148f4cfec More updates for Ygg v0.5 2023-03-19 10:33:07 +00:00
7efd66932f Redial failed connections if possible (#983) 2022-11-12 11:30:03 +00:00
590d83aa9c Fix #975 by not exporting uint8 2022-11-01 17:42:52 +00:00
ee33bd248f Added two new methods to mobile package (#974)
* Added two new methods

In order to implement https://github.com/yggdrasil-network/yggdrasil-android/issues/25 we need these new methods.

* Renamed methods, changed comments
2022-11-01 12:10:50 +00:00
f08dec822a Priority support (#964)
* Allow setting link priorities

* Fix a bug

* Allow setting priority on listeners and multicast interfaces

* Update `yggdrasilctl`

* Update to Arceliar/ironwood#5
2022-10-26 09:24:24 +01:00
5ef61faeff Link refactor (#941)
* Link refactoring

* More refactoring

* More tweaking

* Cleaner shutdowns, UNIX socket support, more tweaks

* Actorise links, remove mutex

* SOCKS support
2022-09-17 20:07:00 +01:00
414aaf6eb9 Update mobile.go (#942) 2022-09-05 12:55:35 +01:00
493208fb37 Refactor multicast setup (isolated config, etc) 2022-09-03 11:42:05 +01:00
a182fad8d6 Merge branch 'develop' into neilalexander/refactor 2022-08-28 13:39:26 -05:00
f8e626dbe1 Fix Android multicast crash (#930)
* Do not exit on multicast errors (mobile)

* Consistency with cmd/yggdrasil/main.go

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-08-10 22:54:02 +01:00
4c889703b1 Continue refactoring 2022-08-06 15:05:12 +01:00
bc78530fcb Build packages in GitHub Actions 2022-04-17 23:38:16 +01:00
41d890bb64 Run goimports 2022-04-17 18:02:25 +01:00
620b901473 Revert downgrading of wireguard and update wintun in windows installer (#865)
* Revert "Revert Wireguard update"

This reverts commit 03a5cce5bb.

Signed-off-by: R4SAS <r4sas@i2pmail.org>

* [win] update installer build script

Signed-off-by: R4SAS <r4sas@i2pmail.org>

* [appveyor] use golang 1.17.3 for building

Signed-off-by: R4SAS <r4sas@i2pmail.org>

* [appveyor] use golang 1.17.5 for building

Signed-off-by: R4SAS <r4sas@i2pmail.org>

* test script

Signed-off-by: R4SAS <r4sas@i2pmail.org>

* test msi and semver scripts

Signed-off-by: R4SAS <r4sas@i2pmail.org>

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-01-30 21:57:10 +00:00
09ea351682 Update build 2022-01-30 19:59:17 +00:00
6d92edd405 Move src/mobile into main repository (#864)
* Move `src/mobile` into main repository

* Update go.mod/go.sum

* Move to `contrib`, separate mobile build script
2022-01-30 19:48:32 +00:00
a4bdf3de32 Remove CAP_NET_RAW from systemd service unit, as it's not clear why it is there in the first place 2022-01-15 22:17:49 +00:00
408d381591 Set hostArchitectures in macOS .pkg installer 2021-12-06 11:19:58 +00:00
4f3117d81d Use network-online.target instead of network.target for systemd service unit 2021-11-03 17:40:06 +00:00
99227b60ce Update CI to use Go 1.17, produce Apple Silicon builds (closes #844) 2021-09-28 11:02:15 +01:00
6a0ddc20ef Allow yggdrasil bind to ports <1024 2021-07-21 17:57:59 +07:00
2fc34bbd5a Revert "Merge pull request #796 from Chaz6/update-systemd-files"
This reverts commit 88bd098f91, reversing
changes made to 4d798a3494.
2021-07-04 09:26:17 +01:00
9391430bc0 Update binary path in systemd service files to match the website. 2021-07-02 13:14:13 +01:00
9b68ac5702 Fix wintun hopefully 2021-06-13 11:13:02 +01:00
38e05b5f4c Download wintun on first pass 2021-06-13 11:07:19 +01:00
8621223a1f Remove -aslr 2021-06-13 11:04:27 +01:00
272670b85b Fix version numbers in MSI 2021-06-13 11:03:01 +01:00
63967462d9 Update MSI build again 2021-06-13 10:58:15 +01:00
3b669a15ed Update build-msi.sh 2021-06-13 10:47:14 +01:00
45d6a1e6e5 Revert "Build MSIs for Windows using CircleCI (#766)"
This reverts commit f0a5cd542c.
2021-06-13 10:42:31 +01:00
838bca083d remove bashisms for semver 2021-06-06 02:33:11 -05:00
2b6aa3e2d7 Semver version fix 2021-06-05 22:38:37 +01:00
c5529a3a38 Use git describe again 2021-06-05 22:28:29 +01:00
e827e5d313 Go back to old semver version for now 2021-06-05 22:09:15 +01:00
5cede61a34 Use git describe output for versions 2021-06-05 21:32:18 +01:00
6bc2044ced update ironwood dependency, fix ansible code, go mod tidy 2021-05-23 17:52:10 -05:00
9b67eb7ef2 Update Dockerfile
Removing personal information
2021-03-24 15:39:55 +02:00
f0a5cd542c Build MSIs for Windows using CircleCI (#766)
* Try to build MSIs from CircleCI using wixl/msitools

* Upload msis

* Change condition

* Update Platform

* Update Platform

* Don't build ARM, it's apparently not well supported

* Don't build ARM, it's apparently not well supported

* Remove appveyor config

* Update comments

* newline
2021-03-07 14:03:34 +00:00
5b326d8bb8 Update generate.sh (#736)
The AppArmor profile in contrib forbids `/usr/bin/yggdrasil` from reading the file in `/var/backups/yggdrasil.conf...`. This works around that restriction by having the shell do the reading of `/var/backups/yggdrasil.conf...` file while providing the same exact functionality without making the AppArmor profile less restrictive. 

Another change is the safe perms for the `/etc/yggdrasil.conf` (so that config will have 0640 permissions). This is important because if we kept the default of 644 then any user (privileged or unprivileged) will have the ability to read the yggdrasil private key. We use a restrictive umask of 0027 to make this possible.
2020-12-06 20:52:54 +00:00
709ea6976c apparmor: allow yggdrasil to resolve hostnames (#739)
The apparmor profile in it's current state won't allow resolving hostnames. We need `<abstractions/nameservice>` because we simply can't just allow `/etc/resolv.conf`. This is because systemd-resolved, resolvconf, and others rely on symbolic links to `/etc/resolv.conf` which would make this extremely complicated.  `<abstractions/nameservice>` deals with this complexity to allow every single one of those packages (systemd-resolved, resolvconf, ... ).

```
  network inet stream,
  network inet dgram,
  network inet6 dgram,
  network inet6 stream,
  network netlink raw,
```
was removed because it's already included in `<abstractions/nameservice>`. Some permissions that are no longer needed in newer yggdrasil versions were also removed.

`owner /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,` was changed to `/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,` because there is no guarantee that yggdrasil will always be run as root. (`owner` makes sure that the process's user and the file have the same owner, in that case, root. This might not always be the case so `owner` was removed)
2020-12-06 20:52:10 +00:00
1492738c9e golangci-lint in CI (#733)
* golangci-lint in CI

* Put CI in own job

* Run verify job

* Use go get

* Fix typo

* Name lint instead of verify

* Read the config

* Use debug tag

* Tweaks
2020-09-27 14:28:25 +01:00
7a314afb31 check if an error was returned by Core._init and return it if so 2020-03-31 18:14:20 -05:00
e7228c7ae4 Merge pull request #666 from jcgruenhage/ansible-genkeys-progress-bar
add a progress bar to the ansible key generator
2020-03-25 20:55:15 +00:00