Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
SagerNet
An anti-censorship community
Collective -
Host: opensource -
https://opencollective.com/sagernet
- Website: https://sagernet.org/
- Code: https://github.com/SagerNet
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 9d699ba730bf1be7c9acc0b6a2cb80c3f92f939f authored about 3 years ago
Signed-off-by: David Anderson <[email protected]>
Signed-off-by: Jason A. Donenfeld <Jason...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - e3134bf6659b13bbc4713fe2b9147463cc9ff374 authored about 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 63abb5537bef592fe65ec94801e10a7406314094 authored about 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 111e0566dce3fc3489cb75ee40b752b1b738e9c6 authored about 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 851efb1bb65555e0f765a3361c8eb5ac47435b19 authored about 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - c07dd60cdb8eb3fc87b63ed0938979e4e4fb6278 authored about 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - eb6302c7eb71e3e3df9f63395bc5c97dcf0efc84 authored over 3 years ago
Forgetting to seed the unsafe rng, the jitter before followed a fixed
pattern, which didn't help...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - e42c6c4bc2d0d1e6b4f247b98cf4ead8a1b08a2e authored over 3 years ago
Suggested-by: Adam Bliss <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Update gvisor to v0.0.0-20211020211948-f76a604701b6, which requires some
changes to tun.go:
Wri...
github.com/SagerNet/wireguard-go - f1f626090e3b30d502ed1baae6b1d86853571a5b authored over 3 years agoSigned-off-by: Brad Fitzpatrick <[email protected]>
github.com/SagerNet/wireguard-go - 82e0b734e5d28f96205de65fd2179e08fd91b1db authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - fdf57a1fa4821c3d82c79325d00f00062ffde699 authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - f87e87af0d9a2d41e79770cf1422f01f7e8b303d authored over 3 years agoOnly wireguard-windows used this, and it's moving to wgnt exclusively.
Signed-off-by: Jason A. ...
github.com/SagerNet/wireguard-go - ba9e364dab402cfc104eb00669f7fdfd9259559e authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - dfd688b6aa7b044f7e7e0662288c66ee1d56e0e8 authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - c01d52b66af1277201f3f39d9e0e45411ba0111b authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 82d2aa87aa623cb5143a41c3345da4fb875ad85d authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 982d5d2e84910cd29d52b97cfbe733fd56fd04ef authored over 3 years ago
We'll eventually be getting rid of it here, but keep it sync'd up for
now.
Signed-off-by: Jason...
github.com/SagerNet/wireguard-go - 642a56e165e74a518fe986c2cf93dea62d6029b5 authored over 3 years ago
This reverts commit fcc601dbf0f6b626ec1d47a880cbe64f9c8fe385 but then
bumps go.mod.
Signed-off-...
github.com/SagerNet/wireguard-go - bb745b2ea3264bb764cac77c4fa8e69cf9b2a975 authored over 3 years ago
This is a temporary measure while we wait for
https://go-review.googlesource.com/c/sys/+/352310 ...
(*NativeTun).operateOnFd is only used on darwin and freebsd. Adjust the
build tags accordingly.
...
At these points, the socket file descriptor is not yet wrapped in an
*os.File, so it needs to be...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 2ef39d47540c4537f0ddd3355fb95b33b91c09b7 authored over 3 years agogithub.com/SagerNet/libping - 593b070fbd74a44e068e4319fe6c5863bd110698 authored over 3 years ago
github.com/SagerNet/libping - 0abae2be87f27f35c59a1c81ed449bed10ae9ffc authored over 3 years ago
Otherwise recent WDK binaries fail on ARM64, where an exception handler
is used for trapping an ...
The reason this was failing before is that dloadsup.h's
DloadObtainSection was doing a linear se...
Probably a bad idea, but we don't currently support it, and those huge
windows.NewCallback tramp...
Might be more reasonable.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 15b24b6179e078c799946f279bb5ac30053fd02d authored over 3 years agoThis should make it a bit easier for the garbage collector.
Signed-off-by: Jason A. Donenfeld <...
github.com/SagerNet/wireguard-go - f9b48a961cd271bcc58c4c76b61a84a139e76167 authored over 3 years ago
Trying this for every peer winds up being very slow and precludes it
from acceptable runtime in ...
The inliner should handle this for us.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 841756e328c743fec624e9259921ea6d815911d5 authored over 3 years ago
Now that we have parent pointers hooked up, we can simply go right to
the node and remove it in ...
This makes the insertion algorithm a bit more efficient, while also now
taking on the additional...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 4a57024b94edf23a20f1e4289052d0717227683b authored over 3 years agoTo pick up https://go-review.googlesource.com/c/sys/+/307129.
Signed-off-by: Josh Bleecher Snyd...
github.com/SagerNet/wireguard-go - 64cb82f2b3f5207f025a1c7ddf4d3043887d5712 authored over 3 years ago
Heavier network extensions might require the wireguard-go component to
use less ram, so let user...
On Linux we can run `ip link del wg0`, in which case the fd becomes
stale, and we should exit. S...
The -1 protection was removed and the wrong error was returned, causing
us to read from a bogus ...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 50d779833e4457f5a2bed788d4048939db8e9fe7 authored over 3 years ago
Suggested-by: Lennart Poettering <[email protected]>
Signed-off-by: Jason A. Donenfeld <Jas...
This reduces the allocation, branches, and amount of base64 encoding.
Signed-off-by: Jason A. D...
github.com/SagerNet/wireguard-go - 9087e444e6457a21fdb1037b9ed204ac417abc05 authored over 3 years agoSigned-off-by: Josh Bleecher Snyder <[email protected]>
github.com/SagerNet/wireguard-go - 25ad08a59157ed8a9750e827c658260b4138fd93 authored over 3 years ago
When retrying, if count is not 0, we forget to dequeue another request,
and so the ring fills up...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 9844c74f67ecb5dcca92646dd2c23fcfa21c0703 authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 4e9e5dad09bedc372b2cf389cc791d029420a1cf authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 39e0b6dade0c64673330a26d4eb86d624337daf0 authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 7121927b8743a9177fda6ddbdfcf9ccd97989417 authored over 3 years agoWe dont use ... in any other present progressive messages except these.
Signed-off-by: Jason A....
github.com/SagerNet/wireguard-go - 326aec10afd9a86e4ad41dcd057d18c9c0ce7097 authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - efb881855098ac1d17cbe000b73d5ed31202c204 authored over 3 years ago
In 097af6e ("tun: windows: protect reads from closing") we made sure no
functions are running wh...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - db733ccd6531a2976008b87b3af35bece9ace2a9 authored over 3 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - a7aec4449f0e4b31f33a118a16223876b8533322 authored over 3 years agoWhen debugging, it's useful to know why a receive func exited.
We were already logging that, bu...
github.com/SagerNet/wireguard-go - 60a26371f42f5c0a9ce1ffb2b85b739d80085f2a authored over 3 years ago
Reported-by: John Xiong <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Otherwise the padding doesn't get updated.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 69a42a4eefc78c2a2e36842fcb26d906101cdae0 authored over 3 years ago
The code previously used the old errors channel for checking, rather
than the simpler boolean, w...
If we receive a large UDP packet, don't return an error to receive.go,
which then terminates the...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - c9db4b7aaa22b29f1c7c05ee8e3125ec2cab6965 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 3625f8d2843b37408d44a5a28654ba7c323b77ea authored almost 4 years ago
When we pass the TUN FD to the child, we have to call TUNSIFPID;
otherwise when we close the dev...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 71aefa374d141776abfb8dede5c3af3fe796842e authored almost 4 years agoAs of FreeBSD 12.1, there's TUNGIFNAME.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 3d3e30beb83889fe2508c4da80796abea2500983 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - b0e5b19969af3cdeec6894b09fa193b67455c6ec authored almost 4 years agoMore kernels!
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 39888214425f5c4d6c3c8344cc0087880de9e663 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - c7cd2c9eab6af6c676bcf286af37d729438fceae authored almost 4 years agoThis is kind of gross but it's better than the alternatives.
Signed-off-by: Jason A. Donenfeld ...
github.com/SagerNet/wireguard-go - 54dbe2471f8ed67f49e8b5e5c92f6f4eb4a5a912 authored almost 4 years ago
Note: this bug is "hidden" by avoiding "death spiral" code path by
6228659 ("device: handle broa...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 5f6bbe4ae8b2e46bcf71e9476fb29c30a9cb4d79 authored almost 4 years ago
By not comparing these with the modulo, the ring became nearly never
full, resulting in completi...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - fbf97502cfcfcf35e7963e02b4412e46396334a1 authored almost 4 years ago
Instead of hard-coding exactly two sources from which
to receive packets (an IPv4 source and an ...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 8ed83e0427a693db6d909897dc73bf7ce6e22b21 authored almost 4 years ago
RoutineReceiveIncoming exits immediately on net.ErrClosed,
but not on other errors. However, for...
This makes it clearer that they are fresh on each attempt,
and avoids the bookkeeping required t...
It's not obvious on a first read what the loop is doing.
Signed-off-by: Josh Bleecher Snyder <j...
github.com/SagerNet/wireguard-go - 517f0703f515f8cfad2f5887d71ca6fbfbbd4d72 authored almost 4 years ago
The sending code is identical for ipv4 and ipv6;
select the conn, then use it.
Signed-off-by: J...
github.com/SagerNet/wireguard-go - 822f5a6d70c22df93ed1680fbe14ef3733647e89 authored almost 4 years ago
And document a bit.
This name is more idiomatic.
Signed-off-by: Josh Bleecher Snyder <josharian...
github.com/SagerNet/wireguard-go - 02e419ed8af63294fb0d9015d5c77b78fe92709e authored almost 4 years agogithub.com/SagerNet/wireguard-go - bc69a3fa60f74292bd3df7e11d406902ff785b79 authored almost 4 years ago
It makes the routing configuration simpler.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 12ce53271baa04a8a8a2c491e1604c53d5f05cfb authored almost 4 years agoOtherwise we wind up deadlocking.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 5f0c8b942d93be6ac36a156c0ba44c86c3698f91 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - c5f382624ee45df7b17e14800d361159eb924e6f authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 82f3e9e2afc1b52a88a691b1ce173623e525e4f0 authored almost 4 years ago
This change allows omitting the tun interface name setting. When the
name is not set, the kernel...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 4885e7c9549e8d6812eb7aa069e863a349f50e84 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 0eb720629553800b351c8ac7f6aa5ffad3de427d authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 20714ca4727547ed641f4570ef96f87796485e95 authored almost 4 years agoIt should be enough to check for the trailing zero name.
Signed-off-by: Jason A. Donenfeld <Jas...
github.com/SagerNet/wireguard-go - 497ba95de7833566d696768c8a366e39fdb40f8b authored almost 4 years agoOtherwise the netstack module doesn't show up on the package site.
https://github.com/golang/go...
github.com/SagerNet/wireguard-go - c1e09f192794e499a662ca83725c9907f99af2c0 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 79611c64e8d63a2cddcacb141f41be0f19b8032b authored almost 4 years ago
There's no way for len(peers)==0 when a current peer has
isRunning==false.
This requires some s...
github.com/SagerNet/wireguard-go - 593658d9755bd33232a49c5a8f3e54d3f59a614e authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 3c11c0308e4e9fae76e1531f4f49a39f1ae24253 authored almost 4 years ago
Googlers have a habit of graffiting their name in TODO items that then
are never addressed, and ...
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 6603c05a4a48219faa7450a40ba766914590133a authored almost 4 years agoThis prevents port clashing bugs.
Signed-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - 9a29ae267cc4573f88f5d9871e2aa53ea201e873 authored almost 4 years agoSigned-off-by: Jason A. Donenfeld <[email protected]>
github.com/SagerNet/wireguard-go - a4f8e83d5d9f477554971e90e9ab85922f506ea9 authored almost 4 years ago
This code is stable, and the test is finicky, especially on high core
count systems, so just dis...