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

wintun: add helper for cleaning up

github.com/SagerNet/wireguard-go - 03eee4a7782ddefa49c682b4de9c13bb5099892c authored over 5 years ago
wintun: simplify error matching and remove dumb comments

github.com/SagerNet/wireguard-go - 700860f8e697b187a7bbd7b226469a1de0818456 authored over 5 years ago
wintun: fix comments and remove hwnd param

This now looks more idiomatic.

github.com/SagerNet/wireguard-go - a304f69e0dde3984b131d1cf29d22f19b4e5e083 authored over 5 years ago
setupapi: add SetDeviceRegistryPropertyString description

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

github.com/SagerNet/wireguard-go - baafe92888c2485e31594f57c37ee29ca8c12b4e authored over 5 years ago
setupapi: unify ERROR_INSUFFICIENT_BUFFER handling

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

github.com/SagerNet/wireguard-go - a1a97d1e4120fa1c137e0cc647b3c657019780fb authored over 5 years ago
wintun: allow controlling GUID

github.com/SagerNet/wireguard-go - e924280baa36f6fd80f4a65f2fb6223a4965b281 authored over 5 years ago
setupapi: add DeviceInstanceID()

github.com/SagerNet/wireguard-go - bb3f1932faa4f75800a145e7f0476d8a8dcf104a authored over 5 years ago
global: fixup TODO comment spacing

github.com/SagerNet/wireguard-go - eaf17becfa70c31bcfb6f195e8d68cb5b720ec4a authored over 5 years ago
wintun: guid functions are upstream

github.com/SagerNet/wireguard-go - 6d8b68c8f3cd7c9e9560c23e5f20e3ec4bc4fb6e authored over 5 years ago
wintun: simplify DeleteInterface method signature

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

github.com/SagerNet/wireguard-go - c2ed133df80392a1592a6b0b79228041dd725427 authored over 5 years ago
wintun: don't run HrRenameConnection in separate thread

It's very slow, but unfortunately we haven't a choice. NLA needs this to
have completed.

github.com/SagerNet/wireguard-go - 108c37a05639a5fdbef2112a046ed7d7b1f2c27a authored over 5 years ago
tun: windows: obsolete 256 packets per exchange buffer limitation

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

github.com/SagerNet/wireguard-go - e4b0ef29a16479a0d7f44968e9e0a2d5603a5783 authored over 5 years ago
setupapi, wintun: replace syscall with golang.org/x/sys/windows

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

github.com/SagerNet/wireguard-go - 625e445b22afbb4dab20eed07640388ea36b332d authored over 5 years ago
setupapi: define PropChangeParams struct

This structure is required for calling DIF_PROPERTYCHANGE installer
class.

Signed-off-by: Simon...

github.com/SagerNet/wireguard-go - 014f736480dae2dc8b81a7206831058c2c451ccd authored over 5 years ago
wintun: set DI_QUIETINSTALL flag for GUI-less device management

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

github.com/SagerNet/wireguard-go - 85b85e62e52198045ed853b81617db1f8c83c65f authored over 5 years ago
device: use bytes.Equal for equality check, simplify assertEqual

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

github.com/SagerNet/wireguard-go - 8d76ac8cc47cbe4072b2f5a48ede21c3e2d5ced0 authored over 5 years ago
device: remove redundant return statements

More staticcheck fixes:

$ staticcheck ./... | grep S1023
device/noise-helpers.go:45:2: redundan...

github.com/SagerNet/wireguard-go - 43a4589043faa6f81c2148e462e2b739e22ccb55 authored over 5 years ago
device, ratelimiter: replace uses of time.Now().Sub() with time.Since()

Simplification found by staticcheck:

$ staticcheck ./... | grep S1012
device/cookie.go:90:5: sh...

github.com/SagerNet/wireguard-go - 18b6627f33883e28dd69b2990c52359002856694 authored over 5 years ago
ipc/winpipe: go fmt

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

github.com/SagerNet/wireguard-go - 80ef2a42e66a9cb57f806ca49361b9e2a5e6c45f authored over 5 years ago
tun: windows: mitigate infinite loop in Flush()

It's possible that for whatever reason, we keep returning EOF, resulting
in repeated close/open/...

github.com/SagerNet/wireguard-go - da61947ec3717fbfdc84d98866ab60e82f154ce0 authored over 5 years ago
device: add SendKeepalivesToPeersWithCurrentKeypair for handover

github.com/SagerNet/wireguard-go - d9f995209c3cc7bda242e8752680d78684fd62e4 authored over 5 years ago
tai64n: account for whitening in test

github.com/SagerNet/wireguard-go - d0ab883adaae3b458ec6a54af04c9df347f378f5 authored over 5 years ago
device, tun: rearrange code and fix device tests

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

github.com/SagerNet/wireguard-go - 32912dc778a0b98637fbfe010b31bd0b746662e6 authored over 5 years ago
wintun: remove extra /

github.com/SagerNet/wireguard-go - d4034e5f8a298c263c820d13a7758436f5e1b89b authored over 5 years ago
device: darwin actually doesn't need bound interfaces

github.com/SagerNet/wireguard-go - fbcd995ec1d2d3705c7665192341d05e35d21917 authored over 5 years ago
device: make initiations per second match kernel implementation

github.com/SagerNet/wireguard-go - e7e286ba6cf7a952279d5007f71c7d38cb510610 authored over 5 years ago
device: timers: add jitter on ack failure reinitiation

github.com/SagerNet/wireguard-go - f70546bc2e5888de0530dfd0f97d8556a98bba68 authored over 5 years ago
wintun: revise GetInterface()

- Make foreign interface found error numeric to ease condition
detection.
- Update GetInterfac...

github.com/SagerNet/wireguard-go - 6a0a3a54067182aee4c2cb4c7ef7ac5aaf2fd961 authored over 5 years ago
wintun: never return nil, nil

github.com/SagerNet/wireguard-go - 8fdcf5ee30d9576b5ddb163180f5d5506a349eea authored over 5 years ago
ipc: use simplified fork of winio

github.com/SagerNet/wireguard-go - a74a29bc937cf75c1af4166e746df49ef53b2fc2 authored over 5 years ago
setupapi: trim "Get" from getters

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

github.com/SagerNet/wireguard-go - dc9bbec9dbca1daff8265b6e6da6b36185e74660 authored over 5 years ago
wintun: don't try to flush interface, but rather delete

github.com/SagerNet/wireguard-go - a6dbe4f4754de333a7ab4df6549d681edbb297fd authored over 5 years ago
device: fail to give bind if it doesn't exist

github.com/SagerNet/wireguard-go - c718f3940d6546f83cc14c4f121d52470a705c31 authored over 5 years ago
wintun: make certain methods private

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

github.com/SagerNet/wireguard-go - 583ebe99f10c769a2614dcc662c8f66165e801eb authored over 5 years ago
makefile: do not show warning on non-linux

github.com/SagerNet/wireguard-go - a6dd28260094f148053239f96a29825c5628db61 authored over 5 years ago
wintun: change acronyms to uppercase

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

github.com/SagerNet/wireguard-go - 7d5f5bcc0dedc8272c8c3cdbc345876f24c4ecfe authored over 5 years ago
global: regroup all imports

github.com/SagerNet/wireguard-go - 3bf41b06ae6ec9a558d3b1f1f315509ccef97010 authored over 5 years ago
wintun: registry: fix nits

github.com/SagerNet/wireguard-go - 3147f000897be94066069c1a703272b7e282a015 authored over 5 years ago
wintun: registry: revise value reading

- Make getStringValueRetry() reusable for reading any value type. This
merges code from GetInt...

github.com/SagerNet/wireguard-go - 6c1b66802f533f4b6ebad72147e1fd6fe11c6cd7 authored over 5 years ago
wintun: call HrRenameConnection in another thread

github.com/SagerNet/wireguard-go - 5669ed326f1a1c535c1251f07a31323ec3c60ef1 authored over 5 years ago
wintun: add LUID accessor

github.com/SagerNet/wireguard-go - 2d847a38a29ed413f5907cc411c9ff4752001212 authored over 5 years ago
wintun: enumerate faster by using COMPATDRIVER instead of CLASSDRIVER

github.com/SagerNet/wireguard-go - 7a8553aef00449867816fdbba54a02ae748eefca authored over 5 years ago
wintun: destroy devinfolist after usage

github.com/SagerNet/wireguard-go - a6045ac0423472d849f7a173da1703adf3e0c51d authored over 5 years ago
wintun: registry: replace REG_NOTIFY with NOTIFY

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

github.com/SagerNet/wireguard-go - 1c92b48415e7f68cce859b4adf95c5d1ce5df9e9 authored over 5 years ago
wintun: IpConfig is a MULTI_SZ, and fix errors

github.com/SagerNet/wireguard-go - c267965bf888de5abc66cc37b7ea61de12cbfc62 authored over 5 years ago
wintun: poll for device key

It's actually pretty hard to guess where it is.

github.com/SagerNet/wireguard-go - 1bf1dadf15d04aae6b309abf1d2cdebadb81418c authored over 5 years ago
wintun: fix scope of error object

github.com/SagerNet/wireguard-go - f9dcfccbb7f918d699c0a922f3b8638c366516b4 authored over 5 years ago
wintun: wait for interface registry key on device creation

By using RegNotifyChangeKeyValue(). Also disable dead gateway detection.

Signed-off-by: Simon R...

github.com/SagerNet/wireguard-go - 7e962a9932667f4a161b20aba5ff1c75ab8e578a authored over 5 years ago
conn: remove scope when sanity checking IP address format

github.com/SagerNet/wireguard-go - 586112b5d78abc99c9858c9a9a40756d5854d311 authored over 5 years ago
wintun: fix GUID leading zero padding

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

github.com/SagerNet/wireguard-go - dcb8f1aa6b14e538b76146d89f834b0ca98240af authored over 5 years ago
mod: update deps

github.com/SagerNet/wireguard-go - b16b0e4cf705ca9c6707a3d7a843b759efd12392 authored over 5 years ago
setupapi: safer aliasing of slice types

github.com/SagerNet/wireguard-go - 81ca08f1b3ebd3d7b893e0bb39cd00e97827e1f7 authored over 5 years ago
wintun: work around GetInterface staleness bug

github.com/SagerNet/wireguard-go - 2e988467c2c9b7a94369f605bad6b08c70a9df7e authored over 5 years ago
wintun: don't retry when not creating

The only time we're trying to counteract the race condition is when
we're creating a driver. Whe...

github.com/SagerNet/wireguard-go - 46dbf5404013e83867356ea8a590a45a569acbf4 authored over 5 years ago
wintun: try harder to open registry key

This sucks. Can we please find a deterministic way of doing this
instead?

github.com/SagerNet/wireguard-go - 247e14693adb3d7a337ec57a4d2db374fb9099cd authored over 5 years ago
go.mod: use vendored winio

github.com/SagerNet/wireguard-go - 3945a299ff0143459ca8d9bd37ec45ecd7d276bc authored over 5 years ago
tun: freebsd: work around numerous kernel panics on shutdown

There are numerous race conditions. But even this will crash it:

while true; do ifconfig tun0 c...

github.com/SagerNet/wireguard-go - bb42ec7d185ab5f5cd3867ac1258edff86b7f307 authored over 5 years ago
setupapi: Fix struct size mismatches

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

github.com/SagerNet/wireguard-go - f1dc167901aeba499cbed20e7134009702026020 authored almost 6 years ago
setupapi: actually fix padding by rounding up to sizeof(void*)

github.com/SagerNet/wireguard-go - c7a26dfef35579bf24059748fae7a87cabfe166f authored almost 6 years ago
tun: darwin: write routeSocket variable in helper

Otherwise the race detector "complains".

github.com/SagerNet/wireguard-go - d0243933350ffdb45a3981b5015932daa603a83b authored almost 6 years ago
main: revise warnings

github.com/SagerNet/wireguard-go - d9078fe772e8314f435c554d8f9b05ddfb0db9bf authored almost 6 years ago
device: send: check packet length before freeing element

github.com/SagerNet/wireguard-go - d3dd991e4e6f670c5daba9ba81aaa226b85eb200 authored almost 6 years ago
setupapi: Revise DrvInfoDetailData struct size calculation

Go adds trailing padding to DrvInfoDetailData struct in GOARCH=386 which
confuses SetupAPI expec...

github.com/SagerNet/wireguard-go - 5811447b382ce1197e9c76d676a65515309a5b60 authored almost 6 years ago
windows: use proper constants from updated x/sys

github.com/SagerNet/wireguard-go - e0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9 authored almost 6 years ago
conn: linux: RTA_MARK has moved to x/sys

github.com/SagerNet/wireguard-go - 0b77bf78cda24582688325cf3197866b60aed69e authored almost 6 years ago
tun: windows: Adopt new error codes returned by Wintun

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

github.com/SagerNet/wireguard-go - ef5f3ad80a43f48e037e9b665f2a3f3405396569 authored almost 6 years ago
tun: windows: do not sleep after OPERATION_ABORTED on write

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

github.com/SagerNet/wireguard-go - a291fdd7462768dd54e433f8319c780448a44f7d authored almost 6 years ago
main_windows: use proper version constant

github.com/SagerNet/wireguard-go - d50e390904ea602ce8d007361fc24ca5ab0c739c authored almost 6 years ago
version: put version in right place

github.com/SagerNet/wireguard-go - 18fa270472650553266bda78dbe1764224faaa73 authored almost 6 years ago
version: bump snapshot

github.com/SagerNet/wireguard-go - f156a53ff46eeeb66b658380274c8edc9562f6fc authored almost 6 years ago
tun: windows: do not sleep after OPERATION_ABORTED

github.com/SagerNet/wireguard-go - e680008700e4a187c6f13ccc1ba4c9aeac8dddf9 authored almost 6 years ago
tun: windows: Retry R/W on ERROR_OPERATION_ABORTED

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

github.com/SagerNet/wireguard-go - 767c86f8cb9388486fbcde8b0aa66a2b10cf3e2b authored almost 6 years ago
tun: windows: Attempt to reopen handle on all errors

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

github.com/SagerNet/wireguard-go - 421c1f9143347d279c5a296a302720754b2a21b2 authored almost 6 years ago
wintun: rename device using undocumented API that netsh.exe uses

github.com/SagerNet/wireguard-go - ac25702eaf13bb2243f02130ae271ff600f75209 authored almost 6 years ago
wintun: add more retry loops

github.com/SagerNet/wireguard-go - 92f847483200a63193d55418381e685621b24e5c authored almost 6 years ago
tun: windows: cancel ongoing reads on closing and delete after close

This reverts commit 52ec440d7977fad966002c3710ed9df957943407 and adds
some spice.

github.com/SagerNet/wireguard-go - 2e0ed4614addc5e1842cf652c5d23779581ca7f2 authored almost 6 years ago
wintun: query for NetCfgInstanceId several times

github.com/SagerNet/wireguard-go - 2fa80c0cb7453ab830355b4c612192ec3064865c authored almost 6 years ago
tun: windows: delete interface before deleting file handles

github.com/SagerNet/wireguard-go - 52ec440d7977fad966002c3710ed9df957943407 authored almost 6 years ago
tun: windows: Make adapter rename asynchronous

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

github.com/SagerNet/wireguard-go - 2faf2dcf908f96fccbfacc8e74b68c2cc4a929c7 authored almost 6 years ago
tun: windows: Adapter devices renamed to WINTUN<LUID Index>

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

github.com/SagerNet/wireguard-go - 41c30a72791999aac8973b82224d3d4b9162dd51 authored almost 6 years ago
tun: windows: Increase unavailable adapter timeout to 30sec

5 seconds was too short when debugging.

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

github.com/SagerNet/wireguard-go - 4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa authored almost 6 years ago
tun: windows: Fix paused adapter test

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

github.com/SagerNet/wireguard-go - 9748a52073e247ece6110cf43f036beb940c80e4 authored almost 6 years ago
tun: windows: Make writing persistent too

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

github.com/SagerNet/wireguard-go - a80db5e65e4c202bae184a32120017782549fdac authored almost 6 years ago
tun: windows: just open two file handles

github.com/SagerNet/wireguard-go - 317d716d662f8b04be187df436565544de2eb1d5 authored almost 6 years ago
receive: implement flush semantics

github.com/SagerNet/wireguard-go - 6440f010eec82abb9c999771a8f493af44c6b937 authored almost 6 years ago
tun: windows: add dummy overlapped events back

These seem basically wrong to me, but we get crashes without them.

github.com/SagerNet/wireguard-go - 49ea0c9b1aca8662c2e520d84f7eed3019f2697a authored almost 6 years ago
tun: windows: use new constants in sys

github.com/SagerNet/wireguard-go - ca59b60aa7767cd2ddd980d053e17ef29c52c0a3 authored almost 6 years ago
uapi: remove unhelpful log messages

github.com/SagerNet/wireguard-go - c050c6e60fc0207c063005e0cadded13195bd4c0 authored almost 6 years ago
wintun: Use native Win32 API for I/O

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

github.com/SagerNet/wireguard-go - 91b4e909bb5fe6980ec56983247e2bfb9fb70ee6 authored almost 6 years ago
uapi: report endpoint error

github.com/SagerNet/wireguard-go - 2c51d6af48b8c6115852d72759c64aaaae5007d5 authored almost 6 years ago
tun: windows: wintun does iocp

github.com/SagerNet/wireguard-go - 03f2e2614ad38317db77b499155995ee5e3d68c2 authored almost 6 years ago
tun: windows: temporary hack for forcing MTU

github.com/SagerNet/wireguard-go - b0e0ab308dd25651fa306e07071624032dab5eab authored almost 6 years ago
wintun: Poll more often

github.com/SagerNet/wireguard-go - 66fb5caf023eb893b5d3fbbda5009749d217a68b authored almost 6 years ago
uapi: make ipcerror conform to interface

github.com/SagerNet/wireguard-go - 3dd9a0535fd699b03fdc08b111d4a5d606f5bfdd authored almost 6 years ago
wintun: Return correct reboot-req flag on CreateInterface() error too

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

github.com/SagerNet/wireguard-go - 70449f1a97dbd03cd48a695ded4cc36b336491fe authored almost 6 years ago
wintun: Make errors more descriptive

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

github.com/SagerNet/wireguard-go - c2a2b8d739cb67b71edd7b015a8050e624d93ab7 authored almost 6 years ago
wintun: Introduce SetupAPI enumerator and machineName consts

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

github.com/SagerNet/wireguard-go - 30ab07e35486909fdae95e7ed01c7bf7635d4a8f authored almost 6 years ago
wintun: Fix double-quoted strings escaping on output

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

github.com/SagerNet/wireguard-go - 33c35284305e0c70e014bac2bcc3eada070aba26 authored almost 6 years ago
Windows: Apply strict security descriptor on pipe server

Signed-off-by: Odd Stranne <[email protected]>

github.com/SagerNet/wireguard-go - a6d5ef82f4d90f3e997aa2ed4bf61414d6c39ee6 authored almost 6 years ago