2
0
mirror of synced 2025-02-23 14:18:13 +00:00

10 Commits

Author SHA1 Message Date
FIGBERT
7d41b9b21c
Pass client logger to anacrolix/go-libutp sockets (#722)
* Update anacrolix/go-libutp (v1.1.0 -> v1.2.0)

* Pass client logger to anacrolix/go-libutp

* Pass logger instead of option

The project now compiles properly when CGO is not enabled.

Additionally, the new argument (now log.Logger instead of
utp.NewSocketOpt) is now required. The tests have been updated to match
this change, and now pass logger.Default to NewUtpSocket.

* Correct function signature of NewUtpSocket
2022-02-15 16:18:32 +11:00
Matt Joiner
48fa9b59fd Fix go-libutp import when CGO is disabled 2021-12-16 14:19:21 +11:00
Matt Joiner
26b521b41c Explicitly use go-libutp synchronous firewall callback 2021-12-12 21:32:29 +11:00
afjoseph
013634d9f1 Revert "Remove old-style build tags"
This reverts commit 11ae25660ad3048ee5736694793fead3305f5c5b.
2021-11-01 11:26:58 +11:00
Matt Joiner
11ae25660a Remove old-style build tags 2021-10-07 09:12:17 +11:00
Matt Joiner
3b62b0054d Fix go:build directives 2021-07-14 14:35:52 +10:00
Matt Joiner
2940f27f9f Use the new firewall callback support in go-libutp 2018-07-25 17:11:09 +10:00
Denis
a41adc49b5 added disable_libutp build flag usage (#215) 2017-12-06 11:56:26 +11:00
Matt Joiner
5d3ee0a531 Fix panic when error occurs binding uTP socket
Fixes #187.
2017-09-14 00:25:29 +10:00
Matt Joiner
ae8b03d586 Use go-libutp if cgo is enabled 2017-06-16 18:08:24 +10:00