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

global: use RTMGRP_* consts from x/sys/unix

Update the golang.org/x/sys/unix dependency and use the newly introduced
RTMGRP_* consts instead...

github.com/SagerNet/wireguard-go - b33219c2cfd430215f2230c15fc4c2f888a081c2 authored almost 5 years ago
send: account for zero mtu

Don't divide by zero.

github.com/SagerNet/wireguard-go - 9cbcff10dd3e04671d31ab224526f3d22a7ba665 authored almost 5 years ago
device: fix private key removal logic

github.com/SagerNet/wireguard-go - 6ed56ff2dfd57ba47cdf604eb3c455acb553c0df authored almost 5 years ago
uapi: allow unsetting device private key with /dev/null

github.com/SagerNet/wireguard-go - cb4bb63030d09afe7ee78fd49613b86709fdc006 authored almost 5 years ago
version: bump snapshot

github.com/SagerNet/wireguard-go - 05b03c675090df893e8317983702c9661dfc319b authored about 5 years ago
tun: darwin: ignore ENOMEM errors

Coauthored-by: Andrej Mihajlov <[email protected]>

github.com/SagerNet/wireguard-go - caebdfe9d05901230dd7c6b7569be2903fd8ac87 authored about 5 years ago
tun: windows: serialize write calls

github.com/SagerNet/wireguard-go - 4fa2ea6a2dabad50eb5585d0a56c3a6966604fa6 authored about 5 years ago
README: update repo urls

github.com/SagerNet/wireguard-go - 89dd065e53e986234289a0ace66539873be8b075 authored about 5 years ago
device: SendmsgN mutates the input sockaddr

So we take a new granular lock to prevent concurrent writes from
racing.

WARNING: DATA RACE
Wri...

github.com/SagerNet/wireguard-go - ddfad453cf22146e9476a5f4b91cf6c47b77e9c7 authored about 5 years ago
wintun: manage ring memory manually

It's large and Go's garbage collector doesn't deal with it especially
well.

github.com/SagerNet/wireguard-go - 2b242f93932e1c4ab8b45dd0f628dd4fe063699b authored about 5 years ago
constants: recalculate rekey max based on a one minute flood

Discussed-with: Mathias Hall-Andersen <[email protected]>

github.com/SagerNet/wireguard-go - 4cdf805b29b1aaca1fab317ca4fce54c7fd69bf6 authored about 5 years ago
global: fix a few typos courtesy of codespell

Signed-off-by: Jonathan Tooker <[email protected]>

github.com/SagerNet/wireguard-go - f7d0edd2ecf5f7f5aed188823de0a122691a7de6 authored over 5 years ago
device: allow blackholing sockets

github.com/SagerNet/wireguard-go - ffffbbcc8a3344a45c45884f11a1aee1407615ab authored over 5 years ago
device: remove dead error reporting code

github.com/SagerNet/wireguard-go - 47b02c618bcd4f65726bc2c57538296e430a842c authored over 5 years ago
namespaceapi: remove tasteless comment

github.com/SagerNet/wireguard-go - fd23c66fcdc6b105bda2aea24f595b9c356c3670 authored over 5 years ago
device: recheck counters while holding write lock

github.com/SagerNet/wireguard-go - ae492d1b359918d20fda817e31675f126c7a7837 authored over 5 years ago
wintun: normalize variable names for their types

github.com/SagerNet/wireguard-go - 95fbfccf60b7d8528e5f89bcf01d132516af5817 authored over 5 years ago
wintun: quickly ignore non-Wintun devices

Some devices take ~2 seconds to enumerate on Windows if we try to get
their instance name. The ...

github.com/SagerNet/wireguard-go - c85e4a410f27986a2967a49c0155633c716bf3ca authored over 5 years ago
tun: match windows CreateTUN signature to the Linux variant

Signed-off-by: Avery Pennarun <[email protected]>
[zx2c4: fix default value]

github.com/SagerNet/wireguard-go - 1b6c8ddbe8f2b9ef0b07b4d5a97443c67ee2e0fd authored over 5 years ago
rwcancel: handle EINTR and EAGAIN in unixSelect()

On my Chromebook (Linux 4.19.44 in a VM) and on an AWS EC2
machine, select() was sometimes retur...

github.com/SagerNet/wireguard-go - 0abb6b668c708aa84daba4b036e536fd76a8b1c5 authored over 5 years ago
device: test packets between two fake devices

Signed-off-by: David Crawshaw <[email protected]>

github.com/SagerNet/wireguard-go - 540d01e54ae472aa395ff1869af9de91171cdd7b authored over 5 years ago
version: bump snapshot

github.com/SagerNet/wireguard-go - f2ea85e9f9921bc29a7dcb2007212b153540c01a authored over 5 years ago
Makefile: remove v prefix

github.com/SagerNet/wireguard-go - 222f0f8000e80ffff3253fac9990ee61f4e64398 authored over 5 years ago
wintun: expose version

github.com/SagerNet/wireguard-go - 1f146a5e7ad9081c79026339c2ad82f357743d66 authored over 5 years ago
uapi: allow preventing creation of new peers when updating

This enables race-free updates for wg-dynamic and similar tools.

Suggested-by: Thomas Gschwantn...

github.com/SagerNet/wireguard-go - f2501aa6c8c0e658b0c026201de3e9fdb7697593 authored over 5 years ago
mod: bump versions

github.com/SagerNet/wireguard-go - cb8d01f58a0057b437b1a448f9d8ba25bcc6d8da authored over 5 years ago
winpipe: use x/sys/windows instead of syscall

github.com/SagerNet/wireguard-go - 01f8ef4e84a0354d33c32130f11c88d37d5f514d authored over 5 years ago
wintun: use correct length for security attributes

github.com/SagerNet/wireguard-go - 70f6c42556afad75fa5c9734fe02cd8d2679ed0b authored over 5 years ago
tun: windows: unify error message format

github.com/SagerNet/wireguard-go - bb0b2514c0533edb3c4670cc01bdec735c8e2704 authored over 5 years ago
version: bump snapshot

github.com/SagerNet/wireguard-go - 7c97fdb1e34babf2697a815b8381037220e0c19b authored over 5 years ago
main: simplify warnings

github.com/SagerNet/wireguard-go - 84b5a4d83d14189fe5898bd896680e7acde2c028 authored over 5 years ago
tun: openbsd: check for interface already being up

In some cases, we operate on an already-up interface, or the user brings
up the interface before...

github.com/SagerNet/wireguard-go - 4cd06c0925ceb3dccd07b5ca1bdcdd6c24cfc77b authored over 5 years ago
namespaceapi: AddSIDToBoundaryDescriptor modifies the handle

github.com/SagerNet/wireguard-go - d12eb91f9a309a30dd78e89ff71050842d4a4e6e authored over 5 years ago
wintun: take mutex first always

This prevents an ABA deadlock with setupapi's internal locks.

github.com/SagerNet/wireguard-go - 73d3bd9cd5e425c7422084172e63ed2eaa87d8ec authored over 5 years ago
wintun: consider abandoned mutexes as released

github.com/SagerNet/wireguard-go - f3dba4c1948e7225c61e8561abb50d0a876bd737 authored over 5 years ago
ipc: windows: use protected prefix

github.com/SagerNet/wireguard-go - 7937840f9631fbaaab33bdbad67040b28f5d0387 authored over 5 years ago
winpipe: enforce ownership of client connection

github.com/SagerNet/wireguard-go - e4b957183c4a330f020f5188f3b30b59355efb80 authored over 5 years ago
wintun: put mutex into private namespace

github.com/SagerNet/wireguard-go - 950ca2ba8c026be809ced2438f89ec9146734cf7 authored over 5 years ago
namespaceapi: fix mistake

github.com/SagerNet/wireguard-go - df2bf34373467cadab4f37b1a3c67eee45e677b4 authored over 5 years ago
wintun: take mutex so that deletion uses the right name

github.com/SagerNet/wireguard-go - 14df9c3e75fce5dcb709e46f860838cc88d4033a authored over 5 years ago
namespaceapi: initial version

Signed-off-by: Simon Rozman <[email protected]>

github.com/SagerNet/wireguard-go - a12b76578443b8f3f237d1a3730d829c9906a010 authored over 5 years ago
wintun: move ring constants into module

github.com/SagerNet/wireguard-go - 353f0956bccf4919f7764166f1dd0f2c8bb7cca2 authored over 5 years ago
wintun: delete all interfaces is not used anymore

github.com/SagerNet/wireguard-go - fa7763c268d2f5b93aa76f673ae0db7e740cf08d authored over 5 years ago
wintun: Wintun->Interface

github.com/SagerNet/wireguard-go - d94bae834882e6579f09db46b60cf9a1c46dac8a authored over 5 years ago
wintun: keep reference to pool in wintun object

github.com/SagerNet/wireguard-go - 7689d093362b6c560c7093c14aea3c2d88aeb84d authored over 5 years ago
wintun: introduce adapter pools

This makes wintun package reusable for non-WireGuard applications.

Signed-off-by: Simon Rozman ...

github.com/SagerNet/wireguard-go - 69c26dc258958be54513bb1d8d8e489d61690e82 authored over 5 years ago
wintun: simplify rename logic

github.com/SagerNet/wireguard-go - e862131d3cf56a5db53722648c04051c064b22a8 authored over 5 years ago
wintun: give better errors when ndis interface listing fails

github.com/SagerNet/wireguard-go - da28a3e9f3abc3e117a777452ba887090fd0ad98 authored over 5 years ago
wintun: also check for numbered suffix and friendly name

github.com/SagerNet/wireguard-go - 3bf3322b2c5b27aca852b12c3fabb2ce91d6f445 authored over 5 years ago
wintun: upgrade deleting all interfaces and make it reusable

DeleteAllInterfaces() didn't check if SPDRP_DEVICEDESC == "WireGuard
Tunnel". It deleted _all_ W...

github.com/SagerNet/wireguard-go - 7305b4ce935828da5c2081c69a6b554a8c15ed53 authored over 5 years ago
wintun: rename duplicate adapters instead of ourselves

github.com/SagerNet/wireguard-go - 7fbb24afaac9c89c98db89f7773ce82c919c520c authored over 5 years ago
wintun: cleanup earlier

github.com/SagerNet/wireguard-go - 26fb615b11a581e399771448c5ae19a01e7be7f2 authored over 5 years ago
wintun: match suffix numbers

github.com/SagerNet/wireguard-go - d9008ac35cc9eff988680895a81445ad6b049d65 authored over 5 years ago
device: getsockname on linux to determine port

It turns out Go isn't passing the pointer properly so we wound up with a
zero port every time.

github.com/SagerNet/wireguard-go - f8198c042810b2c512c610654272db845e32b75e authored over 5 years ago
wintun: make description consistent across fields

github.com/SagerNet/wireguard-go - 0c540ad60e6942f0c8458d8b9b5ceb2d76a0d29b authored over 5 years ago
wintun: try multiple names until one isn't a duplicate

github.com/SagerNet/wireguard-go - 3cedc22d7b49be8ca00dc549c79de9e4a2d3df5b authored over 5 years ago
wintun: use nci.dll directly instead of buggy netshell

github.com/SagerNet/wireguard-go - 68fea631d8e97aa7395b944916e569cf66553e73 authored over 5 years ago
wintun: set friendly a bit better

This is still wrong, but NETSETUPPKEY_Driver_FriendlyName seems a bit
tricky to use.

github.com/SagerNet/wireguard-go - ef23100a4f86948e0466dce980d8604ad95f13df authored over 5 years ago
wintun: also set friendly name after setting interface name

github.com/SagerNet/wireguard-go - eb786cd7c11335708133624eda678dfad54048d6 authored over 5 years ago
wintun: defer requires unique variable

github.com/SagerNet/wireguard-go - 333de75370236c0109b15814a095f28d5484ec98 authored over 5 years ago
wintun: set adapter description name

github.com/SagerNet/wireguard-go - d20459dc6916fa3d4cd4bc161864111195ffecd3 authored over 5 years ago
tun: windows: don't spin unless we really need it

github.com/SagerNet/wireguard-go - 01786286c1dbda06cf74aa4b389a9f43fcbfb644 authored over 5 years ago
version: bump snapshot

github.com/SagerNet/wireguard-go - b16dba47a7165cc9cfd6530a4548e1428170fe52 authored over 5 years ago
device: drop lock before expiring keys

github.com/SagerNet/wireguard-go - 4be9630ddc26090fdb62915def925fc13f98519f authored over 5 years ago
uapi: skip peers with invalid keys

github.com/SagerNet/wireguard-go - 4e3018a96725345d3b486ceb36dc143eb1b645c7 authored over 5 years ago
tun: windows: spin for only a millisecond/80

Performance stays the same as before.

github.com/SagerNet/wireguard-go - b4010123f74470eeca0551a151dea3e7a7381bcc authored over 5 years ago
wintun: simplify checking reboot requirement

We never checked checkReboot() reported error anyway.

Signed-off-by: Simon Rozman <simon@rozman...

github.com/SagerNet/wireguard-go - f5e54932e600ca94ef498a6f98c73c184979533b authored over 5 years ago
wintun: merge opening device registry key

This also introduces waiting for key to appear on initial access.

See if this resolves the issu...

github.com/SagerNet/wireguard-go - 1ff37e2b0706143c5da7131ae13f45d0d1882344 authored over 5 years ago
wintun: refactor `err == nil` error checking

Signed-off-by: Simon Rozman <[email protected]>

github.com/SagerNet/wireguard-go - 73698066d142a82468aa1c4c2bef52bbef919a7c authored over 5 years ago
wintun: handle error for deadgwdetect

github.com/SagerNet/wireguard-go - 05ece4d167cf26c95ef58cc80e912dbd43d44c86 authored over 5 years ago
tun: darwin: do not attempt to close tun.event twice

Previously it was possible for this to race. It turns out we really
don't need to set anything t...

github.com/SagerNet/wireguard-go - 6d78f895579b114c93bd493ad8d61316fc5dd15a authored over 5 years ago
wintun: get interface path properly with cfgmgr

github.com/SagerNet/wireguard-go - a2249449d60f69c1878612e2c2c0b9b37b10ce1b authored over 5 years ago
tun: windows: style

github.com/SagerNet/wireguard-go - eeeac287ef4e46a1fcd3d15a1f8942dc136ae601 authored over 5 years ago
wintun: simplify resolution of dev node

github.com/SagerNet/wireguard-go - b5a7cbf069678ccdca7fe3997f6b44ffc3446109 authored over 5 years ago
wintun: enable sharing of pnp node

github.com/SagerNet/wireguard-go - 50cd522cb0d8e384a4f46ec4155d7bed37cd57a6 authored over 5 years ago
tun: windows: close event handle on shutdown

github.com/SagerNet/wireguard-go - 5ba866a5c8dfedb2efd54ae371090b9a05cedd1a authored over 5 years ago
ipc: windows: match SDDL of WDK and make monkeyable

github.com/SagerNet/wireguard-go - 2f101fedec51ac87e53fc9c00720f0069893b9ee authored over 5 years ago
tun: windows: get rid of retry logic

Things work fine on Windows 8.

github.com/SagerNet/wireguard-go - 3341e2d4448e51152c2e919f0a694c5667fa91dd authored over 5 years ago
tun: windows: use specific IOCTL code

github.com/SagerNet/wireguard-go - 1b550f658325d7525cc4357024352599c6796d32 authored over 5 years ago
device: do not crash on nil'd bind in windows binding

github.com/SagerNet/wireguard-go - 7bc0e118317d20974107a8a0f17cf57d400f4791 authored over 5 years ago
tun: windows: open file at startup time

github.com/SagerNet/wireguard-go - 31ff9c02fec42f38b0e444c41744887a1b9fedaf authored over 5 years ago
tun: windows: silently drop packet when ring is full

github.com/SagerNet/wireguard-go - 1e39c33ab1abd8cd10c912ef8df48c7e1a4b1590 authored over 5 years ago
tun: windows: switch to NDIS device object

github.com/SagerNet/wireguard-go - 6c50fedd8eecc6cb06d8da47514794eb211d5b3a authored over 5 years ago
tun: windows: spin for a bit before falling back to event object

github.com/SagerNet/wireguard-go - 9ea9a921178fe6b0e1e823cea2cd73d654217b4c authored over 5 years ago
wintun: calculate path of NDIS device object symbolic link

github.com/SagerNet/wireguard-go - 298d759f3efba6b90ea70838d190959b39c5be57 authored over 5 years ago
tun: openbsd: don't change MTU when it's already the expected size

Allows for running wireguard-go as non-root user.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c...

github.com/SagerNet/wireguard-go - 4d5819183e218e040fa0a73df560b4a4a9a768d7 authored over 5 years ago
tun: windows: implement ring buffers

Signed-off-by: Simon Rozman <[email protected]>

github.com/SagerNet/wireguard-go - 2e24e7dcae421c45aadf4c052a33b784ad320014 authored over 5 years ago
device: immediately rekey all peers after changing device private key

Reported-by: Derrick Pallas <[email protected]>

github.com/SagerNet/wireguard-go - a961aacc9f4dff9e617197c6433f8c9628928132 authored over 5 years ago
README: update windows info

github.com/SagerNet/wireguard-go - b0cf53b0787f63c643c7fe009527b5f4af1bd1e1 authored over 5 years ago
tun: windows: registration of write buffer no longer required

github.com/SagerNet/wireguard-go - 5c3d333f10c7238cae9b8ed1aabdb8c8ab6a7ebc authored over 5 years ago
tun: windows: decrease alignment to 4

github.com/SagerNet/wireguard-go - d8448f8a0298b16cc128bf0e64963852964d2e78 authored over 5 years ago
tun: windows: delay initial write

Otherwise we provoke Wintun 0.3.

github.com/SagerNet/wireguard-go - 13abbdf14bda7ef4ee5739d28bb61dc449cf67bc authored over 5 years ago
device: receive: uniform message for source address check

github.com/SagerNet/wireguard-go - f361e59001c8e6d8e61c82151a70c6006dac71d4 authored over 5 years ago
tun: windows: packetNum is unused

github.com/SagerNet/wireguard-go - b844f1b3cc2c37ca76427572d8fc8d7977c0274d authored over 5 years ago
device: receive: simplify flush loop

github.com/SagerNet/wireguard-go - dd8817f50e5657259b7ed3e1af3f8c370525cf2f authored over 5 years ago
tun: windows: inform wintun of maximum buffer length for writes

github.com/SagerNet/wireguard-go - 5e6eff81b6f7f18b3dd24bec03ea71f009a3e938 authored over 5 years ago
tun: windows: never retry open on Windows 10

github.com/SagerNet/wireguard-go - c69d02664924e11ffc5e6728638216a26b81c4ce authored over 5 years ago
tun: remove TUN prefix from types to reduce stutter elsewhere

Signed-off-by: Matt Layher <[email protected]>

github.com/SagerNet/wireguard-go - 1f48971a80f48257e478e532f6971d0557026120 authored over 5 years ago
device: update transfer counters correctly

The rule is to always update them to the full packet size minus UDP/IP
encapsulation for all aut...

github.com/SagerNet/wireguard-go - 3371f8dac6fe6bbd7522a8316b50f6473012e302 authored over 5 years ago
wintun: increase registry timeout

github.com/SagerNet/wireguard-go - 41fdbf09710b7987b442e8fd8310568f2790c15b authored over 5 years ago