diff --git a/Changelog.md b/Changelog.md index 82df5fb2457..4b3692a1091 100644 --- a/Changelog.md +++ b/Changelog.md @@ -101,8 +101,8 @@ - Add a `quic.Config` option to configure keep-alive - Rename the STK to Cookie - Implement `net.Conn`-style deadlines for streams -- Remove the `tls.Config` from the `quic.Config`. The `tls.Config` must now be passed to the `Dial` and `Listen` functions as a separate parameter. See the [Godoc](https://godoc.org/github.com/quic-go/quic-go) for details. -- Changed the log level environment variable to only accept strings ("DEBUG", "INFO", "ERROR"), see [the wiki](https://github.com/quic-go/quic-go/wiki/Logging) for more details. +- Remove the `tls.Config` from the `quic.Config`. The `tls.Config` must now be passed to the `Dial` and `Listen` functions as a separate parameter. See the [Godoc](https://godoc.org/github.com/apernet/quic-go) for details. +- Changed the log level environment variable to only accept strings ("DEBUG", "INFO", "ERROR"), see [the wiki](https://github.com/apernet/quic-go/wiki/Logging) for more details. - Rename the `h2quic.QuicRoundTripper` to `h2quic.RoundTripper` - Changed `h2quic.Server.Serve()` to accept a `net.PacketConn` - Drop support for Go 1.7 and 1.8. diff --git a/README.md b/README.md index 94823d994c2..e2724b3ed57 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Documentation](https://img.shields.io/badge/docs-quic--go.net-red?style=flat)](https://quic-go.net/docs/) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/quic-go/quic-go)](https://pkg.go.dev/github.com/quic-go/quic-go) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/apernet/quic-go)](https://pkg.go.dev/github.com/apernet/quic-go) [![Code Coverage](https://img.shields.io/codecov/c/github/quic-go/quic-go/master.svg?style=flat-square)](https://codecov.io/gh/quic-go/quic-go/) [![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/quic-go.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:quic-go) @@ -47,4 +47,4 @@ quic-go always aims to support the latest two Go releases. ## Contributing -We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with [help wanted](https://github.com/quic-go/quic-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). If you have any questions, please feel free to reach out by opening an issue or leaving a comment. +We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with [help wanted](https://github.com/apernet/quic-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). If you have any questions, please feel free to reach out by opening an issue or leaving a comment. diff --git a/SECURITY.md b/SECURITY.md index c24c08f8630..62c2ce89893 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -8,7 +8,7 @@ please bring it to our attention right away! ## Reporting a Vulnerability If you find a vulnerability that may affect live deployments -- for example, by exposing -a remote execution exploit -- please [**report privately**](https://github.com/quic-go/quic-go/security/advisories/new). +a remote execution exploit -- please [**report privately**](https://github.com/apernet/quic-go/security/advisories/new). Please **DO NOT file a public issue**. If the issue is an implementation weakness that cannot be immediately exploited or @@ -16,4 +16,4 @@ something not yet deployed, just discuss it openly. ## Reporting a non security bug -For non-security bugs, please simply file a GitHub [issue](https://github.com/quic-go/quic-go/issues/new). +For non-security bugs, please simply file a GitHub [issue](https://github.com/apernet/quic-go/issues/new). diff --git a/buffer_pool.go b/buffer_pool.go index 48589e12365..34f3d1ca1ea 100644 --- a/buffer_pool.go +++ b/buffer_pool.go @@ -3,7 +3,7 @@ package quic import ( "sync" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) type packetBuffer struct { diff --git a/buffer_pool_test.go b/buffer_pool_test.go index c565d4a48e1..851bdc1fa44 100644 --- a/buffer_pool_test.go +++ b/buffer_pool_test.go @@ -1,7 +1,7 @@ package quic import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/client.go b/client.go index 1c5654f6dca..d4af80ee012 100644 --- a/client.go +++ b/client.go @@ -6,9 +6,9 @@ import ( "errors" "net" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" ) type client struct { diff --git a/client_test.go b/client_test.go index 98d6e2a84b5..0ce9a0775be 100644 --- a/client_test.go +++ b/client_test.go @@ -7,10 +7,10 @@ import ( "net" "time" - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/closed_conn.go b/closed_conn.go index 83338532710..f4057f37a79 100644 --- a/closed_conn.go +++ b/closed_conn.go @@ -4,7 +4,7 @@ import ( "math/bits" "net" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" ) // A closedLocalConn is a connection that we closed locally. diff --git a/closed_conn_test.go b/closed_conn_test.go index 4bb59e9033f..2127eeb2ecc 100644 --- a/closed_conn_test.go +++ b/closed_conn_test.go @@ -3,7 +3,7 @@ package quic import ( "net" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/config.go b/config.go index d42bdc1c5f4..31e6462acdb 100644 --- a/config.go +++ b/config.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // Clone clones a Config diff --git a/config_test.go b/config_test.go index 6008a527361..4de7f4826eb 100644 --- a/config_test.go +++ b/config_test.go @@ -7,9 +7,9 @@ import ( "reflect" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/congestion/interface.go b/congestion/interface.go index 3e41a4de692..670bbc4249f 100644 --- a/congestion/interface.go +++ b/congestion/interface.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) type ( diff --git a/conn_id_generator.go b/conn_id_generator.go index d7be6540ece..772823a6288 100644 --- a/conn_id_generator.go +++ b/conn_id_generator.go @@ -3,9 +3,9 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" ) type connIDGenerator struct { diff --git a/conn_id_generator_test.go b/conn_id_generator_test.go index c438158e157..4a300a918b8 100644 --- a/conn_id_generator_test.go +++ b/conn_id_generator_test.go @@ -3,9 +3,9 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/conn_id_manager.go b/conn_id_manager.go index 4aa3f749e0f..8d531c9612c 100644 --- a/conn_id_manager.go +++ b/conn_id_manager.go @@ -3,11 +3,11 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - list "github.com/quic-go/quic-go/internal/utils/linkedlist" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + list "github.com/apernet/quic-go/internal/utils/linkedlist" + "github.com/apernet/quic-go/internal/wire" ) type newConnID struct { diff --git a/conn_id_manager_test.go b/conn_id_manager_test.go index 40d848f19b8..f03f9bb6db1 100644 --- a/conn_id_manager_test.go +++ b/conn_id_manager_test.go @@ -1,9 +1,9 @@ package quic import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/connection.go b/connection.go index bbbe36ea45b..ba1e243bc77 100644 --- a/connection.go +++ b/connection.go @@ -13,16 +13,16 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go/congestion" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/logutils" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/congestion" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/logutils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" ) type unpacker interface { @@ -307,7 +307,7 @@ var newConnection = func( // different from protocol.DefaultActiveConnectionIDLimit. // If set to the default value, it will be omitted from the transport parameters, which will make // old quic-go versions interpret it as 0, instead of the default value of 2. - // See https://github.com/quic-go/quic-go/pull/3806. + // See https://github.com/apernet/quic-go/pull/3806. ActiveConnectionIDLimit: protocol.MaxActiveConnectionIDs, InitialSourceConnectionID: srcConnID, RetrySourceConnectionID: retrySrcConnID, @@ -416,7 +416,7 @@ var newClientConnection = func( // different from protocol.DefaultActiveConnectionIDLimit. // If set to the default value, it will be omitted from the transport parameters, which will make // old quic-go versions interpret it as 0, instead of the default value of 2. - // See https://github.com/quic-go/quic-go/pull/3806. + // See https://github.com/apernet/quic-go/pull/3806. ActiveConnectionIDLimit: protocol.MaxActiveConnectionIDs, InitialSourceConnectionID: srcConnID, } diff --git a/connection_test.go b/connection_test.go index 394f399acd5..2cf49e1b1d7 100644 --- a/connection_test.go +++ b/connection_test.go @@ -14,17 +14,17 @@ import ( "strings" "time" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/mocks" - mockackhandler "github.com/quic-go/quic-go/internal/mocks/ackhandler" - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" - "github.com/quic-go/quic-go/testutils" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/mocks" + mockackhandler "github.com/apernet/quic-go/internal/mocks/ackhandler" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" + "github.com/apernet/quic-go/testutils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/connection_timer.go b/connection_timer.go index 171fdd01384..f6024c488f5 100644 --- a/connection_timer.go +++ b/connection_timer.go @@ -3,7 +3,7 @@ package quic import ( "time" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" ) var deadlineSendImmediately = time.Time{}.Add(42 * time.Millisecond) // any value > time.Time{} and before time.Now() is fine diff --git a/crypto_stream.go b/crypto_stream.go index abc7ddcf86c..448aaebf38f 100644 --- a/crypto_stream.go +++ b/crypto_stream.go @@ -4,9 +4,9 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" ) type cryptoStream interface { diff --git a/crypto_stream_manager.go b/crypto_stream_manager.go index c48e238a78a..8a937e1fdd7 100644 --- a/crypto_stream_manager.go +++ b/crypto_stream_manager.go @@ -3,9 +3,9 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) type cryptoDataHandler interface { diff --git a/crypto_stream_manager_test.go b/crypto_stream_manager_test.go index daffffe6a9a..42141606777 100644 --- a/crypto_stream_manager_test.go +++ b/crypto_stream_manager_test.go @@ -1,8 +1,8 @@ package quic import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/crypto_stream_test.go b/crypto_stream_test.go index 9a4a2ee57f9..dad3943f0bf 100644 --- a/crypto_stream_test.go +++ b/crypto_stream_test.go @@ -3,9 +3,9 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/datagram_queue.go b/datagram_queue.go index e26285b2615..16b2d5db38d 100644 --- a/datagram_queue.go +++ b/datagram_queue.go @@ -4,9 +4,9 @@ import ( "context" "sync" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/utils/ringbuffer" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils/ringbuffer" + "github.com/apernet/quic-go/internal/wire" ) const ( diff --git a/datagram_queue_test.go b/datagram_queue_test.go index fe8db59fdae..0de2de9f56c 100644 --- a/datagram_queue_test.go +++ b/datagram_queue_test.go @@ -5,8 +5,8 @@ import ( "errors" "time" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/errors.go b/errors.go index 8275246f13b..e21fdb28b01 100644 --- a/errors.go +++ b/errors.go @@ -3,7 +3,7 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/qerr" ) type ( diff --git a/example/client/main.go b/example/client/main.go index 409a3444f73..3cf09444177 100644 --- a/example/client/main.go +++ b/example/client/main.go @@ -11,10 +11,10 @@ import ( "os" "sync" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/http3" - "github.com/quic-go/quic-go/internal/testdata" - "github.com/quic-go/quic-go/qlog" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/http3" + "github.com/apernet/quic-go/internal/testdata" + "github.com/apernet/quic-go/qlog" ) func main() { diff --git a/example/echo/echo.go b/example/echo/echo.go index 7c81c826866..fbb07c7b54e 100644 --- a/example/echo/echo.go +++ b/example/echo/echo.go @@ -12,7 +12,7 @@ import ( "log" "math/big" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) const addr = "localhost:4242" diff --git a/example/main.go b/example/main.go index bf87f81079c..9682dbf5190 100644 --- a/example/main.go +++ b/example/main.go @@ -15,10 +15,10 @@ import ( _ "net/http/pprof" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/http3" - "github.com/quic-go/quic-go/internal/testdata" - "github.com/quic-go/quic-go/qlog" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/http3" + "github.com/apernet/quic-go/internal/testdata" + "github.com/apernet/quic-go/qlog" ) type binds []string diff --git a/frame_sorter.go b/frame_sorter.go index 1637a3ee49f..3e072e17fd3 100644 --- a/frame_sorter.go +++ b/frame_sorter.go @@ -3,9 +3,9 @@ package quic import ( "errors" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/utils/tree" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils/tree" ) // byteInterval is an interval from one ByteCount to the other diff --git a/frame_sorter_test.go b/frame_sorter_test.go index 46fb7078277..90d6eb98de7 100644 --- a/frame_sorter_test.go +++ b/frame_sorter_test.go @@ -8,9 +8,9 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/utils/tree" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils/tree" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/framer.go b/framer.go index 5eef65372e8..37dcfb31cc9 100644 --- a/framer.go +++ b/framer.go @@ -4,11 +4,11 @@ import ( "errors" "sync" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils/ringbuffer" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils/ringbuffer" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/quicvarint" ) type framer interface { @@ -26,7 +26,7 @@ type framer interface { // This is a hack. // It is easier to implement than propagating an error return value in QueueControlFrame. // The correct solution would be to queue frames with their respective structs. - // See https://github.com/quic-go/quic-go/issues/4271 for the queueing of stream-related control frames. + // See https://github.com/apernet/quic-go/issues/4271 for the queueing of stream-related control frames. QueuedTooManyControlFrames() bool } diff --git a/framer_test.go b/framer_test.go index 6d364423c63..ddfb05bfa33 100644 --- a/framer_test.go +++ b/framer_test.go @@ -5,9 +5,9 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/fuzzing/frames/cmd/corpus.go b/fuzzing/frames/cmd/corpus.go index 5baed928649..e5856b1573c 100644 --- a/fuzzing/frames/cmd/corpus.go +++ b/fuzzing/frames/cmd/corpus.go @@ -6,10 +6,10 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/fuzzing/internal/helper" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/fuzzing/internal/helper" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) const version = protocol.Version1 diff --git a/fuzzing/frames/fuzz.go b/fuzzing/frames/fuzz.go index 7229f488e8a..1620747c0e9 100644 --- a/fuzzing/frames/fuzz.go +++ b/fuzzing/frames/fuzz.go @@ -3,8 +3,8 @@ package frames import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) const version = protocol.Version1 diff --git a/fuzzing/handshake/cmd/corpus.go b/fuzzing/handshake/cmd/corpus.go index 25a09766be6..58bd00edda4 100644 --- a/fuzzing/handshake/cmd/corpus.go +++ b/fuzzing/handshake/cmd/corpus.go @@ -6,13 +6,13 @@ import ( "log" "net" - fuzzhandshake "github.com/quic-go/quic-go/fuzzing/handshake" - "github.com/quic-go/quic-go/fuzzing/internal/helper" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/testdata" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + fuzzhandshake "github.com/apernet/quic-go/fuzzing/handshake" + "github.com/apernet/quic-go/fuzzing/internal/helper" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/testdata" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) const alpn = "fuzz" diff --git a/fuzzing/handshake/fuzz.go b/fuzzing/handshake/fuzz.go index 738491785db..c301d989b26 100644 --- a/fuzzing/handshake/fuzz.go +++ b/fuzzing/handshake/fuzz.go @@ -15,12 +15,12 @@ import ( "net" "time" - "github.com/quic-go/quic-go/fuzzing/internal/helper" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qtls" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/fuzzing/internal/helper" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qtls" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) var ( diff --git a/fuzzing/header/cmd/corpus.go b/fuzzing/header/cmd/corpus.go index ba53306fd9a..74d0e9b8323 100644 --- a/fuzzing/header/cmd/corpus.go +++ b/fuzzing/header/cmd/corpus.go @@ -5,10 +5,10 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/fuzzing/header" - "github.com/quic-go/quic-go/fuzzing/internal/helper" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/fuzzing/header" + "github.com/apernet/quic-go/fuzzing/internal/helper" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) const version = protocol.Version1 diff --git a/fuzzing/header/fuzz.go b/fuzzing/header/fuzz.go index 62154f300cf..4065903b220 100644 --- a/fuzzing/header/fuzz.go +++ b/fuzzing/header/fuzz.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) const version = protocol.Version1 diff --git a/fuzzing/tokens/fuzz.go b/fuzzing/tokens/fuzz.go index d0043ead0d4..be84b7d7cce 100644 --- a/fuzzing/tokens/fuzz.go +++ b/fuzzing/tokens/fuzz.go @@ -5,9 +5,9 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" ) func Fuzz(data []byte) int { diff --git a/fuzzing/transportparameters/cmd/corpus.go b/fuzzing/transportparameters/cmd/corpus.go index 282e7d338ab..c5f82fba46d 100644 --- a/fuzzing/transportparameters/cmd/corpus.go +++ b/fuzzing/transportparameters/cmd/corpus.go @@ -8,10 +8,10 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/fuzzing/internal/helper" - "github.com/quic-go/quic-go/fuzzing/transportparameters" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/fuzzing/internal/helper" + "github.com/apernet/quic-go/fuzzing/transportparameters" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) func getRandomData(l int) []byte { diff --git a/fuzzing/transportparameters/fuzz.go b/fuzzing/transportparameters/fuzz.go index 267979ce3b1..9b6ce2ae999 100644 --- a/fuzzing/transportparameters/fuzz.go +++ b/fuzzing/transportparameters/fuzz.go @@ -4,9 +4,9 @@ import ( "errors" "fmt" - "github.com/quic-go/quic-go/fuzzing/internal/helper" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/fuzzing/internal/helper" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) // PrefixLen is the number of bytes used for configuration diff --git a/go.mod b/go.mod index e639cb0073f..d82d9d2f31f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/quic-go/quic-go +module github.com/apernet/quic-go go 1.21 diff --git a/http3/README.md b/http3/README.md index 0e2ed4c5fdb..eb092430ef2 100644 --- a/http3/README.md +++ b/http3/README.md @@ -1,7 +1,7 @@ # HTTP/3 [![Documentation](https://img.shields.io/badge/docs-quic--go.net-red?style=flat)](https://quic-go.net/docs/) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/quic-go/quic-go/http3)](https://pkg.go.dev/github.com/quic-go/quic-go/http3) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/apernet/quic-go/http3)](https://pkg.go.dev/github.com/apernet/quic-go/http3) This package implements HTTP/3 ([RFC 9114](https://datatracker.ietf.org/doc/html/rfc9114)), including QPACK ([RFC 9204](https://datatracker.ietf.org/doc/html/rfc9204)) and HTTP Datagrams ([RFC 9297](https://datatracker.ietf.org/doc/html/rfc9297)). It aims to provide feature parity with the standard library's HTTP/1.1 and HTTP/2 implementation. diff --git a/http3/body.go b/http3/body.go index fa023ce4926..60de07ad77e 100644 --- a/http3/body.go +++ b/http3/body.go @@ -5,7 +5,7 @@ import ( "errors" "io" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) // A Hijacker allows hijacking of the stream creating part of a quic.Session from a http.Response.Body. diff --git a/http3/body_test.go b/http3/body_test.go index a348604ff62..2d09098757f 100644 --- a/http3/body_test.go +++ b/http3/body_test.go @@ -5,8 +5,8 @@ import ( "errors" "io" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/capsule.go b/http3/capsule.go index 69d4037a76e..b186bc86215 100644 --- a/http3/capsule.go +++ b/http3/capsule.go @@ -3,7 +3,7 @@ package http3 import ( "io" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/quicvarint" ) // CapsuleType is the type of the capsule. diff --git a/http3/capsule_test.go b/http3/capsule_test.go index 3e7e25e6aec..eefb3ee86ca 100644 --- a/http3/capsule_test.go +++ b/http3/capsule_test.go @@ -4,7 +4,7 @@ import ( "bytes" "io" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/client.go b/http3/client.go index 23ac088fe95..867a9347d74 100644 --- a/http3/client.go +++ b/http3/client.go @@ -12,9 +12,9 @@ import ( "sync" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" "github.com/quic-go/qpack" ) diff --git a/http3/client_test.go b/http3/client_test.go index 4e3b0f23e1b..2865bc3f45a 100644 --- a/http3/client_test.go +++ b/http3/client_test.go @@ -12,9 +12,9 @@ import ( "sync" "time" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go/quicvarint" "github.com/quic-go/qpack" diff --git a/http3/conn.go b/http3/conn.go index df7fb2825bc..74b8680a68f 100644 --- a/http3/conn.go +++ b/http3/conn.go @@ -8,9 +8,9 @@ import ( "sync" "sync/atomic" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" "github.com/quic-go/qpack" ) diff --git a/http3/conn_test.go b/http3/conn_test.go index 4be8b7ae549..7d9f8da7a55 100644 --- a/http3/conn_test.go +++ b/http3/conn_test.go @@ -7,11 +7,11 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/error.go b/http3/error.go index b96ebeec093..cc784c7de08 100644 --- a/http3/error.go +++ b/http3/error.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) // Error is returned from the round tripper (for HTTP clients) diff --git a/http3/error_codes.go b/http3/error_codes.go index ae646586a71..1f6eb411790 100644 --- a/http3/error_codes.go +++ b/http3/error_codes.go @@ -3,7 +3,7 @@ package http3 import ( "fmt" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) type ErrCode quic.ApplicationErrorCode diff --git a/http3/error_test.go b/http3/error_test.go index 7156712857d..db2b5b4c40c 100644 --- a/http3/error_test.go +++ b/http3/error_test.go @@ -3,7 +3,7 @@ package http3 import ( "errors" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/frames.go b/http3/frames.go index 66cba68ca3b..cb74c03808a 100644 --- a/http3/frames.go +++ b/http3/frames.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/quicvarint" ) // FrameType is the frame type of a HTTP/3 frame diff --git a/http3/frames_test.go b/http3/frames_test.go index fc198496343..7281dbec086 100644 --- a/http3/frames_test.go +++ b/http3/frames_test.go @@ -6,9 +6,9 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/http_stream.go b/http3/http_stream.go index 63bea0e18da..dbe8b79a3c0 100644 --- a/http3/http_stream.go +++ b/http3/http_stream.go @@ -8,8 +8,8 @@ import ( "net/http" "strconv" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" "github.com/quic-go/qpack" ) diff --git a/http3/http_stream_test.go b/http3/http_stream_test.go index a4c889e2cf5..a91448d5d9e 100644 --- a/http3/http_stream_test.go +++ b/http3/http_stream_test.go @@ -7,9 +7,9 @@ import ( "math" "net/http" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" "github.com/quic-go/qpack" diff --git a/http3/mock_quic_early_listener_test.go b/http3/mock_quic_early_listener_test.go index bcbfa28964d..90dd2472aef 100644 --- a/http3/mock_quic_early_listener_test.go +++ b/http3/mock_quic_early_listener_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/http3 (interfaces: QUICEarlyListener) +// Source: github.com/apernet/quic-go/http3 (interfaces: QUICEarlyListener) // // Generated by this command: // -// mockgen -typed -package http3 -destination mock_quic_early_listener_test.go github.com/quic-go/quic-go/http3 QUICEarlyListener +// mockgen -typed -package http3 -destination mock_quic_early_listener_test.go github.com/apernet/quic-go/http3 QUICEarlyListener // // Package http3 is a generated GoMock package. @@ -14,7 +14,7 @@ import ( net "net" reflect "reflect" - quic "github.com/quic-go/quic-go" + quic "github.com/apernet/quic-go" gomock "go.uber.org/mock/gomock" ) diff --git a/http3/mock_singleroundtripper_test.go b/http3/mock_singleroundtripper_test.go index 59dc3f53f15..947ac5d7147 100644 --- a/http3/mock_singleroundtripper_test.go +++ b/http3/mock_singleroundtripper_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/http3 (interfaces: SingleRoundTripper) +// Source: github.com/apernet/quic-go/http3 (interfaces: SingleRoundTripper) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package http3 -destination mock_singleroundtripper_test.go github.com/quic-go/quic-go/http3 SingleRoundTripper +// mockgen -typed -build_flags=-tags=gomock -package http3 -destination mock_singleroundtripper_test.go github.com/apernet/quic-go/http3 SingleRoundTripper // // Package http3 is a generated GoMock package. diff --git a/http3/mockgen.go b/http3/mockgen.go index 83a3974f036..38b72fae50c 100644 --- a/http3/mockgen.go +++ b/http3/mockgen.go @@ -2,7 +2,7 @@ package http3 -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package http3 -destination mock_singleroundtripper_test.go github.com/quic-go/quic-go/http3 SingleRoundTripper" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package http3 -destination mock_singleroundtripper_test.go github.com/apernet/quic-go/http3 SingleRoundTripper" type SingleRoundTripper = singleRoundTripper -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package http3 -destination mock_quic_early_listener_test.go github.com/quic-go/quic-go/http3 QUICEarlyListener" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package http3 -destination mock_quic_early_listener_test.go github.com/apernet/quic-go/http3 QUICEarlyListener" diff --git a/http3/request_writer.go b/http3/request_writer.go index e83e9cc813f..bd6d26fcd68 100644 --- a/http3/request_writer.go +++ b/http3/request_writer.go @@ -16,7 +16,7 @@ import ( "golang.org/x/net/idna" "github.com/quic-go/qpack" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) const bodyCopyBufferSize = 8 * 1024 diff --git a/http3/request_writer_test.go b/http3/request_writer_test.go index 4f2af74bea6..ca4d8ba396d 100644 --- a/http3/request_writer_test.go +++ b/http3/request_writer_test.go @@ -5,7 +5,7 @@ import ( "io" "net/http" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" "github.com/quic-go/qpack" "go.uber.org/mock/gomock" diff --git a/http3/response_writer_test.go b/http3/response_writer_test.go index dbac17615c3..4c90a016a70 100644 --- a/http3/response_writer_test.go +++ b/http3/response_writer_test.go @@ -7,7 +7,7 @@ import ( "time" "github.com/quic-go/qpack" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/roundtrip.go b/http3/roundtrip.go index a9b169ee1dc..50e78b69bc6 100644 --- a/http3/roundtrip.go +++ b/http3/roundtrip.go @@ -14,8 +14,8 @@ import ( "golang.org/x/net/http/httpguts" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" ) // Settings are HTTP/3 settings that apply to the underlying connection. diff --git a/http3/roundtrip_test.go b/http3/roundtrip_test.go index c8472e04b5b..9eb28f480c6 100644 --- a/http3/roundtrip_test.go +++ b/http3/roundtrip_test.go @@ -9,10 +9,10 @@ import ( "net/http" "time" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/http3/server.go b/http3/server.go index 7e6ffd54d3b..81f68a89b4e 100644 --- a/http3/server.go +++ b/http3/server.go @@ -15,9 +15,9 @@ import ( "sync" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" "github.com/quic-go/qpack" ) diff --git a/http3/server_test.go b/http3/server_test.go index 7e2138d5c1e..0379192fb82 100644 --- a/http3/server_test.go +++ b/http3/server_test.go @@ -13,11 +13,11 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/testdata" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/testdata" + "github.com/apernet/quic-go/quicvarint" "github.com/quic-go/qpack" "go.uber.org/mock/gomock" diff --git a/http3/state_tracking_stream.go b/http3/state_tracking_stream.go index 9cf17f5e68e..4a4797b368f 100644 --- a/http3/state_tracking_stream.go +++ b/http3/state_tracking_stream.go @@ -6,7 +6,7 @@ import ( "os" "sync" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) var _ quic.Stream = &stateTrackingStream{} diff --git a/http3/state_tracking_stream_test.go b/http3/state_tracking_stream_test.go index cc42ff9e21a..69d4f5cbb5e 100644 --- a/http3/state_tracking_stream_test.go +++ b/http3/state_tracking_stream_test.go @@ -7,8 +7,8 @@ import ( "io" "os" - "github.com/quic-go/quic-go" - mockquic "github.com/quic-go/quic-go/internal/mocks/quic" + "github.com/apernet/quic-go" + mockquic "github.com/apernet/quic-go/internal/mocks/quic" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/gomodvendor/go.mod b/integrationtests/gomodvendor/go.mod index 2594be4e73f..96c898a51e9 100644 --- a/integrationtests/gomodvendor/go.mod +++ b/integrationtests/gomodvendor/go.mod @@ -3,7 +3,7 @@ module test go 1.21 // The version doesn't matter here, as we're replacing it with the currently checked out code anyway. -require github.com/quic-go/quic-go v0.21.0 +require github.com/apernet/quic-go v0.21.0 require ( github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect @@ -20,4 +20,4 @@ require ( golang.org/x/tools v0.21.0 // indirect ) -replace github.com/quic-go/quic-go => ../../ +replace github.com/apernet/quic-go => ../../ diff --git a/integrationtests/gomodvendor/main.go b/integrationtests/gomodvendor/main.go index b19bd3fd784..053601d1d53 100644 --- a/integrationtests/gomodvendor/main.go +++ b/integrationtests/gomodvendor/main.go @@ -1,6 +1,6 @@ package main -import "github.com/quic-go/quic-go/http3" +import "github.com/apernet/quic-go/http3" // The contents of this script don't matter. // We just need to make sure that quic-go is imported. diff --git a/integrationtests/self/benchmark_test.go b/integrationtests/self/benchmark_test.go index 88316206daf..1f68a3f57aa 100644 --- a/integrationtests/self/benchmark_test.go +++ b/integrationtests/self/benchmark_test.go @@ -6,7 +6,7 @@ import ( "net" "testing" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) func BenchmarkHandshake(b *testing.B) { diff --git a/integrationtests/self/cancelation_test.go b/integrationtests/self/cancelation_test.go index 28f3e009a96..1066f7d1c55 100644 --- a/integrationtests/self/cancelation_test.go +++ b/integrationtests/self/cancelation_test.go @@ -10,7 +10,7 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" @@ -172,7 +172,7 @@ var _ = Describe("Stream Cancellations", func() { It("allows concurrent Read and CancelRead calls", func() { // This test is especially valuable when run with race detector, - // see https://github.com/quic-go/quic-go/issues/3239. + // see https://github.com/apernet/quic-go/issues/3239. serverCanceledCounterChan := runServer(make([]byte, 100)) // make sure the FIN is sent with the STREAM frame conn, err := quic.DialAddr( diff --git a/integrationtests/self/close_test.go b/integrationtests/self/close_test.go index d0bcf7f01a4..2f5b2ce1819 100644 --- a/integrationtests/self/close_test.go +++ b/integrationtests/self/close_test.go @@ -7,8 +7,8 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/conn_id_test.go b/integrationtests/self/conn_id_test.go index 24047bce5dd..ffaef504269 100644 --- a/integrationtests/self/conn_id_test.go +++ b/integrationtests/self/conn_id_test.go @@ -8,8 +8,8 @@ import ( mrand "math/rand" "net" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/datagram_test.go b/integrationtests/self/datagram_test.go index 3dc8cb56fed..e7ec1bfd8ae 100644 --- a/integrationtests/self/datagram_test.go +++ b/integrationtests/self/datagram_test.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/deadline_test.go b/integrationtests/self/deadline_test.go index 43e3b2473f1..3717ce2ac0b 100644 --- a/integrationtests/self/deadline_test.go +++ b/integrationtests/self/deadline_test.go @@ -7,7 +7,7 @@ import ( "net" "time" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/drop_test.go b/integrationtests/self/drop_test.go index a3e385bbf35..78a11084813 100644 --- a/integrationtests/self/drop_test.go +++ b/integrationtests/self/drop_test.go @@ -8,8 +8,8 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/early_data_test.go b/integrationtests/self/early_data_test.go index 136c3d0b29b..0ca5ab5423e 100644 --- a/integrationtests/self/early_data_test.go +++ b/integrationtests/self/early_data_test.go @@ -7,8 +7,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/handshake_drop_test.go b/integrationtests/self/handshake_drop_test.go index 304b296139b..d8c75227b04 100644 --- a/integrationtests/self/handshake_drop_test.go +++ b/integrationtests/self/handshake_drop_test.go @@ -11,10 +11,10 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/handshake_rtt_test.go b/integrationtests/self/handshake_rtt_test.go index 96c0a8c1c93..9ebe5e6d7ae 100644 --- a/integrationtests/self/handshake_rtt_test.go +++ b/integrationtests/self/handshake_rtt_test.go @@ -8,8 +8,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/handshake_test.go b/integrationtests/self/handshake_test.go index 0df8f993449..904b45db05d 100644 --- a/integrationtests/self/handshake_test.go +++ b/integrationtests/self/handshake_test.go @@ -9,12 +9,12 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/qtls" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/qtls" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/hotswap_test.go b/integrationtests/self/hotswap_test.go index 4091cda6ada..a0bf206cdb9 100644 --- a/integrationtests/self/hotswap_test.go +++ b/integrationtests/self/hotswap_test.go @@ -9,8 +9,8 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/http3" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/http3" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/http_test.go b/integrationtests/self/http_test.go index e2cf5fb25ea..e6754fa4dd1 100644 --- a/integrationtests/self/http_test.go +++ b/integrationtests/self/http_test.go @@ -22,9 +22,9 @@ import ( "golang.org/x/sync/errgroup" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/http3" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/http3" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/key_update_test.go b/integrationtests/self/key_update_test.go index 3704f96eb82..e04143bd3ce 100644 --- a/integrationtests/self/key_update_test.go +++ b/integrationtests/self/key_update_test.go @@ -6,10 +6,10 @@ import ( "io" "net" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/mitm_test.go b/integrationtests/self/mitm_test.go index 715e311bb35..e957206f5ed 100644 --- a/integrationtests/self/mitm_test.go +++ b/integrationtests/self/mitm_test.go @@ -12,11 +12,11 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/testutils" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/testutils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/mtu_test.go b/integrationtests/self/mtu_test.go index 5c8d1c3b17c..c6b864a1f16 100644 --- a/integrationtests/self/mtu_test.go +++ b/integrationtests/self/mtu_test.go @@ -8,10 +8,10 @@ import ( "sync" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/multiplex_test.go b/integrationtests/self/multiplex_test.go index 0641f8b6e0a..69645e08218 100644 --- a/integrationtests/self/multiplex_test.go +++ b/integrationtests/self/multiplex_test.go @@ -9,7 +9,7 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/packetization_test.go b/integrationtests/self/packetization_test.go index 8c59bc0b1a1..d1965494216 100644 --- a/integrationtests/self/packetization_test.go +++ b/integrationtests/self/packetization_test.go @@ -6,9 +6,9 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/qlog_dir_test.go b/integrationtests/self/qlog_dir_test.go index b81366e537d..9e1db4e5d2e 100644 --- a/integrationtests/self/qlog_dir_test.go +++ b/integrationtests/self/qlog_dir_test.go @@ -8,8 +8,8 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/qlog" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/qlog" ) var _ = Describe("qlog dir tests", Serial, func() { diff --git a/integrationtests/self/resumption_test.go b/integrationtests/self/resumption_test.go index f8bb3a005b6..a8b1aca7449 100644 --- a/integrationtests/self/resumption_test.go +++ b/integrationtests/self/resumption_test.go @@ -7,7 +7,7 @@ import ( "net" "time" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/rtt_test.go b/integrationtests/self/rtt_test.go index 97d9b981243..3ee5248c1f7 100644 --- a/integrationtests/self/rtt_test.go +++ b/integrationtests/self/rtt_test.go @@ -7,8 +7,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/self_suite_test.go b/integrationtests/self/self_suite_test.go index 18698b799e3..898eb1722e8 100644 --- a/integrationtests/self/self_suite_test.go +++ b/integrationtests/self/self_suite_test.go @@ -16,12 +16,12 @@ import ( "testing" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/integrationtests/tools" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/integrationtests/tools" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/stateless_reset_test.go b/integrationtests/self/stateless_reset_test.go index 8db9477b31d..8826b11a4b0 100644 --- a/integrationtests/self/stateless_reset_test.go +++ b/integrationtests/self/stateless_reset_test.go @@ -8,8 +8,8 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/stream_test.go b/integrationtests/self/stream_test.go index 332cd505e30..ee64bd3b7e4 100644 --- a/integrationtests/self/stream_test.go +++ b/integrationtests/self/stream_test.go @@ -9,7 +9,7 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) var _ = Describe("Bidirectional streams", func() { diff --git a/integrationtests/self/timeout_test.go b/integrationtests/self/timeout_test.go index da4c6883bb6..de3d899ba30 100644 --- a/integrationtests/self/timeout_test.go +++ b/integrationtests/self/timeout_test.go @@ -9,10 +9,10 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/tracer_test.go b/integrationtests/self/tracer_test.go index 21691661cb1..0ee22cdbb95 100644 --- a/integrationtests/self/tracer_test.go +++ b/integrationtests/self/tracer_test.go @@ -9,11 +9,11 @@ import ( mrand "math/rand" "net" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" - "github.com/quic-go/quic-go/qlog" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" + "github.com/apernet/quic-go/qlog" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/uni_stream_test.go b/integrationtests/self/uni_stream_test.go index d47df35f647..fef910570ae 100644 --- a/integrationtests/self/uni_stream_test.go +++ b/integrationtests/self/uni_stream_test.go @@ -7,8 +7,8 @@ import ( "net" "sync" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/self/zero_rtt_test.go b/integrationtests/self/zero_rtt_test.go index ccdeab6d405..93e77826f15 100644 --- a/integrationtests/self/zero_rtt_test.go +++ b/integrationtests/self/zero_rtt_test.go @@ -10,11 +10,11 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/tools/proxy/proxy.go b/integrationtests/tools/proxy/proxy.go index 4ed2d89de0e..01206cbdc1a 100644 --- a/integrationtests/tools/proxy/proxy.go +++ b/integrationtests/tools/proxy/proxy.go @@ -6,8 +6,8 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) // Connection is a UDP connection diff --git a/integrationtests/tools/proxy/proxy_test.go b/integrationtests/tools/proxy/proxy_test.go index c51a436a5ff..da58eb746cc 100644 --- a/integrationtests/tools/proxy/proxy_test.go +++ b/integrationtests/tools/proxy/proxy_test.go @@ -11,8 +11,8 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/tools/qlog.go b/integrationtests/tools/qlog.go index ae19ef4b617..45fb3de795a 100644 --- a/integrationtests/tools/qlog.go +++ b/integrationtests/tools/qlog.go @@ -9,10 +9,10 @@ import ( "os" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" - "github.com/quic-go/quic-go/qlog" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" + "github.com/apernet/quic-go/qlog" ) func QlogTracer(logger io.Writer) *logging.Tracer { diff --git a/integrationtests/versionnegotiation/handshake_test.go b/integrationtests/versionnegotiation/handshake_test.go index 6385dacbf88..7ebb6f9d70a 100644 --- a/integrationtests/versionnegotiation/handshake_test.go +++ b/integrationtests/versionnegotiation/handshake_test.go @@ -8,10 +8,10 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/integrationtests/tools/israce" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/integrationtests/tools/israce" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/versionnegotiation/rtt_test.go b/integrationtests/versionnegotiation/rtt_test.go index ce9cba1bed0..1e9ea1df171 100644 --- a/integrationtests/versionnegotiation/rtt_test.go +++ b/integrationtests/versionnegotiation/rtt_test.go @@ -4,9 +4,9 @@ import ( "context" "time" - "github.com/quic-go/quic-go" - quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go" + quicproxy "github.com/apernet/quic-go/integrationtests/tools/proxy" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/integrationtests/versionnegotiation/versionnegotiation_suite_test.go b/integrationtests/versionnegotiation/versionnegotiation_suite_test.go index 2cb3f8650b6..9dca26a0583 100644 --- a/integrationtests/versionnegotiation/versionnegotiation_suite_test.go +++ b/integrationtests/versionnegotiation/versionnegotiation_suite_test.go @@ -7,10 +7,10 @@ import ( "flag" "testing" - "github.com/quic-go/quic-go/integrationtests/tools" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/integrationtests/tools" + "github.com/apernet/quic-go/logging" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/interface.go b/interface.go index 6a2a9626109..11c8d5c088d 100644 --- a/interface.go +++ b/interface.go @@ -8,10 +8,10 @@ import ( "net" "time" - "github.com/quic-go/quic-go/congestion" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/congestion" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" ) // The StreamID is the ID of a QUIC stream. diff --git a/internal/ackhandler/ack_eliciting.go b/internal/ackhandler/ack_eliciting.go index 34506b12e01..56a8155293a 100644 --- a/internal/ackhandler/ack_eliciting.go +++ b/internal/ackhandler/ack_eliciting.go @@ -1,6 +1,6 @@ package ackhandler -import "github.com/quic-go/quic-go/internal/wire" +import "github.com/apernet/quic-go/internal/wire" // IsFrameAckEliciting returns true if the frame is ack-eliciting. func IsFrameAckEliciting(f wire.Frame) bool { diff --git a/internal/ackhandler/ack_eliciting_test.go b/internal/ackhandler/ack_eliciting_test.go index cdd1c7e9624..b243c6c5858 100644 --- a/internal/ackhandler/ack_eliciting_test.go +++ b/internal/ackhandler/ack_eliciting_test.go @@ -3,7 +3,7 @@ package ackhandler import ( "reflect" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/ackhandler.go b/internal/ackhandler/ackhandler.go index 6f890b4d357..fcbb6a998b1 100644 --- a/internal/ackhandler/ackhandler.go +++ b/internal/ackhandler/ackhandler.go @@ -1,9 +1,9 @@ package ackhandler import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" ) // NewAckHandler creates a new SentPacketHandler and a new ReceivedPacketHandler. diff --git a/internal/ackhandler/cc_adapter.go b/internal/ackhandler/cc_adapter.go index 659ab83495a..e5a9a323b73 100644 --- a/internal/ackhandler/cc_adapter.go +++ b/internal/ackhandler/cc_adapter.go @@ -3,9 +3,9 @@ package ackhandler import ( "time" - "github.com/quic-go/quic-go/congestion" - cgInternal "github.com/quic-go/quic-go/internal/congestion" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/congestion" + cgInternal "github.com/apernet/quic-go/internal/congestion" + "github.com/apernet/quic-go/internal/protocol" ) var ( diff --git a/internal/ackhandler/ecn.go b/internal/ackhandler/ecn.go index 68415ac6c08..2ce5164fb08 100644 --- a/internal/ackhandler/ecn.go +++ b/internal/ackhandler/ecn.go @@ -3,9 +3,9 @@ package ackhandler import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" ) type ecnState uint8 diff --git a/internal/ackhandler/ecn_test.go b/internal/ackhandler/ecn_test.go index ab648d816f6..4246f656f02 100644 --- a/internal/ackhandler/ecn_test.go +++ b/internal/ackhandler/ecn_test.go @@ -1,10 +1,10 @@ package ackhandler import ( - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/frame.go b/internal/ackhandler/frame.go index e03a8080ce1..edab8dfe9c8 100644 --- a/internal/ackhandler/frame.go +++ b/internal/ackhandler/frame.go @@ -1,7 +1,7 @@ package ackhandler import ( - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/wire" ) // FrameHandler handles the acknowledgement and the loss of a frame. diff --git a/internal/ackhandler/interfaces.go b/internal/ackhandler/interfaces.go index ffbb41514ce..a42c7f0585d 100644 --- a/internal/ackhandler/interfaces.go +++ b/internal/ackhandler/interfaces.go @@ -3,9 +3,9 @@ package ackhandler import ( "time" - "github.com/quic-go/quic-go/congestion" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/congestion" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) // SentPacketHandler handles ACKs received for outgoing packets diff --git a/internal/ackhandler/mock_ecn_handler_test.go b/internal/ackhandler/mock_ecn_handler_test.go index 42cd0ff1fe4..fd8e950facd 100644 --- a/internal/ackhandler/mock_ecn_handler_test.go +++ b/internal/ackhandler/mock_ecn_handler_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/ackhandler (interfaces: ECNHandler) +// Source: github.com/apernet/quic-go/internal/ackhandler (interfaces: ECNHandler) // // Generated by this command: // -// mockgen -build_flags=-tags=gomock -package ackhandler -destination mock_ecn_handler_test.go github.com/quic-go/quic-go/internal/ackhandler ECNHandler +// mockgen -build_flags=-tags=gomock -package ackhandler -destination mock_ecn_handler_test.go github.com/apernet/quic-go/internal/ackhandler ECNHandler // // Package ackhandler is a generated GoMock package. @@ -12,7 +12,7 @@ package ackhandler import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/ackhandler/mock_sent_packet_tracker_test.go b/internal/ackhandler/mock_sent_packet_tracker_test.go index 8c658137d62..4a583cdc251 100644 --- a/internal/ackhandler/mock_sent_packet_tracker_test.go +++ b/internal/ackhandler/mock_sent_packet_tracker_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/ackhandler (interfaces: SentPacketTracker) +// Source: github.com/apernet/quic-go/internal/ackhandler (interfaces: SentPacketTracker) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/quic-go/quic-go/internal/ackhandler SentPacketTracker +// mockgen -typed -build_flags=-tags=gomock -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/apernet/quic-go/internal/ackhandler SentPacketTracker // // Package ackhandler is a generated GoMock package. @@ -12,7 +12,7 @@ package ackhandler import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/ackhandler/mockgen.go b/internal/ackhandler/mockgen.go index 0031e6b1c8a..53beed3e91a 100644 --- a/internal/ackhandler/mockgen.go +++ b/internal/ackhandler/mockgen.go @@ -2,8 +2,8 @@ package ackhandler -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/quic-go/quic-go/internal/ackhandler SentPacketTracker" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package ackhandler -destination mock_sent_packet_tracker_test.go github.com/apernet/quic-go/internal/ackhandler SentPacketTracker" type SentPacketTracker = sentPacketTracker -//go:generate sh -c "go run go.uber.org/mock/mockgen -build_flags=\"-tags=gomock\" -package ackhandler -destination mock_ecn_handler_test.go github.com/quic-go/quic-go/internal/ackhandler ECNHandler" +//go:generate sh -c "go run go.uber.org/mock/mockgen -build_flags=\"-tags=gomock\" -package ackhandler -destination mock_ecn_handler_test.go github.com/apernet/quic-go/internal/ackhandler ECNHandler" type ECNHandler = ecnHandler diff --git a/internal/ackhandler/packet.go b/internal/ackhandler/packet.go index 5f43689b596..e6d2b48f337 100644 --- a/internal/ackhandler/packet.go +++ b/internal/ackhandler/packet.go @@ -4,7 +4,7 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // A Packet is a packet diff --git a/internal/ackhandler/packet_number_generator.go b/internal/ackhandler/packet_number_generator.go index 4a9db86356b..2e5fac3e9dc 100644 --- a/internal/ackhandler/packet_number_generator.go +++ b/internal/ackhandler/packet_number_generator.go @@ -1,8 +1,8 @@ package ackhandler import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) type packetNumberGenerator interface { diff --git a/internal/ackhandler/packet_number_generator_test.go b/internal/ackhandler/packet_number_generator_test.go index 4384c8f8eee..d532841b5f0 100644 --- a/internal/ackhandler/packet_number_generator_test.go +++ b/internal/ackhandler/packet_number_generator_test.go @@ -4,7 +4,7 @@ import ( "fmt" "math" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/received_packet_handler.go b/internal/ackhandler/received_packet_handler.go index 1175c790bb3..ef6d99edbb0 100644 --- a/internal/ackhandler/received_packet_handler.go +++ b/internal/ackhandler/received_packet_handler.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) type receivedPacketHandler struct { diff --git a/internal/ackhandler/received_packet_handler_test.go b/internal/ackhandler/received_packet_handler_test.go index 90af2123853..cd1fec5377c 100644 --- a/internal/ackhandler/received_packet_handler_test.go +++ b/internal/ackhandler/received_packet_handler_test.go @@ -3,9 +3,9 @@ package ackhandler import ( "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/received_packet_history.go b/internal/ackhandler/received_packet_history.go index 3143bfe1204..7b48fb72472 100644 --- a/internal/ackhandler/received_packet_history.go +++ b/internal/ackhandler/received_packet_history.go @@ -3,9 +3,9 @@ package ackhandler import ( "sync" - "github.com/quic-go/quic-go/internal/protocol" - list "github.com/quic-go/quic-go/internal/utils/linkedlist" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + list "github.com/apernet/quic-go/internal/utils/linkedlist" + "github.com/apernet/quic-go/internal/wire" ) // interval is an interval from one PacketNumber to the other diff --git a/internal/ackhandler/received_packet_history_test.go b/internal/ackhandler/received_packet_history_test.go index af6385be36f..b1992d98a3e 100644 --- a/internal/ackhandler/received_packet_history_test.go +++ b/internal/ackhandler/received_packet_history_test.go @@ -5,8 +5,8 @@ import ( "math/rand" "sort" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/received_packet_tracker.go b/internal/ackhandler/received_packet_tracker.go index 08af6f1ee97..1b949929bb1 100644 --- a/internal/ackhandler/received_packet_tracker.go +++ b/internal/ackhandler/received_packet_tracker.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) // The receivedPacketTracker tracks packets for the Initial and Handshake packet number space. diff --git a/internal/ackhandler/received_packet_tracker_test.go b/internal/ackhandler/received_packet_tracker_test.go index c970fbf1e1a..9f0afcdb02f 100644 --- a/internal/ackhandler/received_packet_tracker_test.go +++ b/internal/ackhandler/received_packet_tracker_test.go @@ -3,9 +3,9 @@ package ackhandler import ( "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/sent_packet_handler.go b/internal/ackhandler/sent_packet_handler.go index 1025fd43d1f..748c833a5ab 100644 --- a/internal/ackhandler/sent_packet_handler.go +++ b/internal/ackhandler/sent_packet_handler.go @@ -6,13 +6,13 @@ import ( "sync" "time" - congestionExt "github.com/quic-go/quic-go/congestion" - "github.com/quic-go/quic-go/internal/congestion" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + congestionExt "github.com/apernet/quic-go/congestion" + "github.com/apernet/quic-go/internal/congestion" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" ) const ( diff --git a/internal/ackhandler/sent_packet_handler_test.go b/internal/ackhandler/sent_packet_handler_test.go index 75c1ae2c0b3..a78891b4d41 100644 --- a/internal/ackhandler/sent_packet_handler_test.go +++ b/internal/ackhandler/sent_packet_handler_test.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/ackhandler/sent_packet_history.go b/internal/ackhandler/sent_packet_history.go index c14c0f49bae..889274fcfba 100644 --- a/internal/ackhandler/sent_packet_history.go +++ b/internal/ackhandler/sent_packet_history.go @@ -3,7 +3,7 @@ package ackhandler import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) type sentPacketHistory struct { diff --git a/internal/ackhandler/sent_packet_history_test.go b/internal/ackhandler/sent_packet_history_test.go index 0f05b63e1d2..c309f5d52b8 100644 --- a/internal/ackhandler/sent_packet_history_test.go +++ b/internal/ackhandler/sent_packet_history_test.go @@ -4,7 +4,7 @@ import ( "errors" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/congestion/bandwidth.go b/internal/congestion/bandwidth.go index 1d03abbb8ad..362c8ed1d80 100644 --- a/internal/congestion/bandwidth.go +++ b/internal/congestion/bandwidth.go @@ -4,7 +4,7 @@ import ( "math" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // Bandwidth of a connection diff --git a/internal/congestion/cubic.go b/internal/congestion/cubic.go index b35d40d410c..f309af641ca 100644 --- a/internal/congestion/cubic.go +++ b/internal/congestion/cubic.go @@ -4,7 +4,7 @@ import ( "math" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // This cubic implementation is based on the one found in Chromiums's QUIC diff --git a/internal/congestion/cubic_sender.go b/internal/congestion/cubic_sender.go index 075b08e007b..67f9121dd75 100644 --- a/internal/congestion/cubic_sender.go +++ b/internal/congestion/cubic_sender.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" ) const ( diff --git a/internal/congestion/cubic_sender_test.go b/internal/congestion/cubic_sender_test.go index 785655004f9..d4533d9dd47 100644 --- a/internal/congestion/cubic_sender_test.go +++ b/internal/congestion/cubic_sender_test.go @@ -3,8 +3,8 @@ package congestion import ( "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/congestion/cubic_test.go b/internal/congestion/cubic_test.go index c1ad621d7f5..3b03796771a 100644 --- a/internal/congestion/cubic_test.go +++ b/internal/congestion/cubic_test.go @@ -4,7 +4,7 @@ import ( "math" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/congestion/hybrid_slow_start.go b/internal/congestion/hybrid_slow_start.go index 9679d9e4668..ac8d3d4aa64 100644 --- a/internal/congestion/hybrid_slow_start.go +++ b/internal/congestion/hybrid_slow_start.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // Note(pwestin): the magic clamping numbers come from the original code in diff --git a/internal/congestion/hybrid_slow_start_test.go b/internal/congestion/hybrid_slow_start_test.go index 5d9517998d7..2a016428763 100644 --- a/internal/congestion/hybrid_slow_start_test.go +++ b/internal/congestion/hybrid_slow_start_test.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/congestion/interface.go b/internal/congestion/interface.go index 54fcbbea35b..d07bd73a754 100644 --- a/internal/congestion/interface.go +++ b/internal/congestion/interface.go @@ -3,8 +3,8 @@ package congestion import ( "time" - "github.com/quic-go/quic-go/congestion" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/congestion" + "github.com/apernet/quic-go/internal/protocol" ) // A SendAlgorithm performs congestion control diff --git a/internal/congestion/pacer.go b/internal/congestion/pacer.go index 34d3d1d096a..f44f7e03dc9 100644 --- a/internal/congestion/pacer.go +++ b/internal/congestion/pacer.go @@ -3,7 +3,7 @@ package congestion import ( "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) const maxBurstSizePackets = 10 diff --git a/internal/congestion/pacer_test.go b/internal/congestion/pacer_test.go index 04ece345927..cefa13906b0 100644 --- a/internal/congestion/pacer_test.go +++ b/internal/congestion/pacer_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/flowcontrol/base_flow_controller.go b/internal/flowcontrol/base_flow_controller.go index 3d88d577e9b..9689683faa6 100644 --- a/internal/flowcontrol/base_flow_controller.go +++ b/internal/flowcontrol/base_flow_controller.go @@ -4,8 +4,8 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) type baseFlowController struct { diff --git a/internal/flowcontrol/base_flow_controller_test.go b/internal/flowcontrol/base_flow_controller_test.go index da6cf357768..05af1a10ff3 100644 --- a/internal/flowcontrol/base_flow_controller_test.go +++ b/internal/flowcontrol/base_flow_controller_test.go @@ -5,8 +5,8 @@ import ( "strconv" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/flowcontrol/connection_flow_controller.go b/internal/flowcontrol/connection_flow_controller.go index 8504cdcf529..dd9633c1b00 100644 --- a/internal/flowcontrol/connection_flow_controller.go +++ b/internal/flowcontrol/connection_flow_controller.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" ) type connectionFlowController struct { diff --git a/internal/flowcontrol/connection_flow_controller_test.go b/internal/flowcontrol/connection_flow_controller_test.go index 8be70eef648..cf9642cdb4f 100644 --- a/internal/flowcontrol/connection_flow_controller_test.go +++ b/internal/flowcontrol/connection_flow_controller_test.go @@ -3,8 +3,8 @@ package flowcontrol import ( "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/flowcontrol/interface.go b/internal/flowcontrol/interface.go index fc5f9de0a5e..891a384ad06 100644 --- a/internal/flowcontrol/interface.go +++ b/internal/flowcontrol/interface.go @@ -1,6 +1,6 @@ package flowcontrol -import "github.com/quic-go/quic-go/internal/protocol" +import "github.com/apernet/quic-go/internal/protocol" type flowController interface { // for sending diff --git a/internal/flowcontrol/stream_flow_controller.go b/internal/flowcontrol/stream_flow_controller.go index ccee287dc17..db7dea5d278 100644 --- a/internal/flowcontrol/stream_flow_controller.go +++ b/internal/flowcontrol/stream_flow_controller.go @@ -3,9 +3,9 @@ package flowcontrol import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" ) type streamFlowController struct { diff --git a/internal/flowcontrol/stream_flow_controller_test.go b/internal/flowcontrol/stream_flow_controller_test.go index 8b0411bd7b7..4b58b5d0007 100644 --- a/internal/flowcontrol/stream_flow_controller_test.go +++ b/internal/flowcontrol/stream_flow_controller_test.go @@ -3,9 +3,9 @@ package flowcontrol import ( "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/aead.go b/internal/handshake/aead.go index 1baf5d6b0b3..ef597352267 100644 --- a/internal/handshake/aead.go +++ b/internal/handshake/aead.go @@ -3,7 +3,7 @@ package handshake import ( "encoding/binary" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) func createAEAD(suite *cipherSuite, trafficSecret []byte, v protocol.Version) *xorNonceAEAD { diff --git a/internal/handshake/aead_test.go b/internal/handshake/aead_test.go index d2d58a02ec8..29f4817ee62 100644 --- a/internal/handshake/aead_test.go +++ b/internal/handshake/aead_test.go @@ -8,7 +8,7 @@ import ( "crypto/tls" "fmt" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/crypto_setup.go b/internal/handshake/crypto_setup.go index 20bcc474c9c..c436d0dc10a 100644 --- a/internal/handshake/crypto_setup.go +++ b/internal/handshake/crypto_setup.go @@ -10,13 +10,13 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/qtls" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/qtls" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" + "github.com/apernet/quic-go/quicvarint" ) type quicVersionContextKey struct{} diff --git a/internal/handshake/crypto_setup_test.go b/internal/handshake/crypto_setup_test.go index aa57f281185..9af312eb116 100644 --- a/internal/handshake/crypto_setup_test.go +++ b/internal/handshake/crypto_setup_test.go @@ -11,12 +11,12 @@ import ( "net" "time" - mocktls "github.com/quic-go/quic-go/internal/mocks/tls" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/testdata" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + mocktls "github.com/apernet/quic-go/internal/mocks/tls" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/testdata" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/header_protector.go b/internal/handshake/header_protector.go index 2c5ee42f12d..660ad927438 100644 --- a/internal/handshake/header_protector.go +++ b/internal/handshake/header_protector.go @@ -9,7 +9,7 @@ import ( "golang.org/x/crypto/chacha20" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) type headerProtector interface { diff --git a/internal/handshake/initial_aead.go b/internal/handshake/initial_aead.go index b8aa7e3e72b..35d6ddd6594 100644 --- a/internal/handshake/initial_aead.go +++ b/internal/handshake/initial_aead.go @@ -6,7 +6,7 @@ import ( "golang.org/x/crypto/hkdf" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) var ( diff --git a/internal/handshake/initial_aead_test.go b/internal/handshake/initial_aead_test.go index 57388a4a88a..2e2f7a6fe2f 100644 --- a/internal/handshake/initial_aead_test.go +++ b/internal/handshake/initial_aead_test.go @@ -7,7 +7,7 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/interface.go b/internal/handshake/interface.go index 6e0eec77aa3..a38fbc3caad 100644 --- a/internal/handshake/interface.go +++ b/internal/handshake/interface.go @@ -7,8 +7,8 @@ import ( "io" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) var ( diff --git a/internal/handshake/retry.go b/internal/handshake/retry.go index 30643cdfcfe..9b7ffee3042 100644 --- a/internal/handshake/retry.go +++ b/internal/handshake/retry.go @@ -7,7 +7,7 @@ import ( "fmt" "sync" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) var ( diff --git a/internal/handshake/retry_test.go b/internal/handshake/retry_test.go index c30f94e7729..44f4460249a 100644 --- a/internal/handshake/retry_test.go +++ b/internal/handshake/retry_test.go @@ -3,7 +3,7 @@ package handshake import ( "encoding/binary" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/session_ticket.go b/internal/handshake/session_ticket.go index b67f0101e42..ace5f883894 100644 --- a/internal/handshake/session_ticket.go +++ b/internal/handshake/session_ticket.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/quicvarint" ) const sessionTicketRevision = 4 diff --git a/internal/handshake/session_ticket_test.go b/internal/handshake/session_ticket_test.go index 8e209d3aaef..d1b0ec22ea5 100644 --- a/internal/handshake/session_ticket_test.go +++ b/internal/handshake/session_ticket_test.go @@ -3,8 +3,8 @@ package handshake import ( "time" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/token_generator.go b/internal/handshake/token_generator.go index 2d91e6b2597..b828c4cb351 100644 --- a/internal/handshake/token_generator.go +++ b/internal/handshake/token_generator.go @@ -7,7 +7,7 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) const ( diff --git a/internal/handshake/token_generator_test.go b/internal/handshake/token_generator_test.go index 7abc53b45e7..de41f04b702 100644 --- a/internal/handshake/token_generator_test.go +++ b/internal/handshake/token_generator_test.go @@ -6,7 +6,7 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/handshake/updatable_aead.go b/internal/handshake/updatable_aead.go index ceaa8047a59..663e8d52c1a 100644 --- a/internal/handshake/updatable_aead.go +++ b/internal/handshake/updatable_aead.go @@ -8,10 +8,10 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" ) // KeyUpdateInterval is the maximum number of packets we send or receive before initiating a key update. diff --git a/internal/handshake/updatable_aead_test.go b/internal/handshake/updatable_aead_test.go index 604c08fa7b1..a456247ab69 100644 --- a/internal/handshake/updatable_aead_test.go +++ b/internal/handshake/updatable_aead_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/logutils/frame.go b/internal/logutils/frame.go index a6032fc20d7..665585456ba 100644 --- a/internal/logutils/frame.go +++ b/internal/logutils/frame.go @@ -1,9 +1,9 @@ package logutils import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" ) // ConvertFrame converts a wire.Frame into a logging.Frame. diff --git a/internal/logutils/frame_test.go b/internal/logutils/frame_test.go index 6db71561d30..9425b31675f 100644 --- a/internal/logutils/frame_test.go +++ b/internal/logutils/frame_test.go @@ -1,8 +1,8 @@ package logutils import ( - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/mocks/ackhandler/received_packet_handler.go b/internal/mocks/ackhandler/received_packet_handler.go index c9c0fd579db..2afdfa3946d 100644 --- a/internal/mocks/ackhandler/received_packet_handler.go +++ b/internal/mocks/ackhandler/received_packet_handler.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/ackhandler (interfaces: ReceivedPacketHandler) +// Source: github.com/apernet/quic-go/internal/ackhandler (interfaces: ReceivedPacketHandler) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/quic-go/quic-go/internal/ackhandler ReceivedPacketHandler +// mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/apernet/quic-go/internal/ackhandler ReceivedPacketHandler // // Package mockackhandler is a generated GoMock package. @@ -13,8 +13,8 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/ackhandler/sent_packet_handler.go b/internal/mocks/ackhandler/sent_packet_handler.go index 8b8881072c1..9d4c937610b 100644 --- a/internal/mocks/ackhandler/sent_packet_handler.go +++ b/internal/mocks/ackhandler/sent_packet_handler.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/ackhandler (interfaces: SentPacketHandler) +// Source: github.com/apernet/quic-go/internal/ackhandler (interfaces: SentPacketHandler) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/quic-go/quic-go/internal/ackhandler SentPacketHandler +// mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/apernet/quic-go/internal/ackhandler SentPacketHandler // // Package mockackhandler is a generated GoMock package. @@ -13,10 +13,10 @@ import ( reflect "reflect" time "time" - congestion "github.com/quic-go/quic-go/congestion" - ackhandler "github.com/quic-go/quic-go/internal/ackhandler" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + congestion "github.com/apernet/quic-go/congestion" + ackhandler "github.com/apernet/quic-go/internal/ackhandler" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/congestion.go b/internal/mocks/congestion.go index 50654c0e3e1..e66a79c51af 100644 --- a/internal/mocks/congestion.go +++ b/internal/mocks/congestion.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/congestion (interfaces: SendAlgorithmWithDebugInfos) +// Source: github.com/apernet/quic-go/internal/congestion (interfaces: SendAlgorithmWithDebugInfos) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination congestion.go github.com/quic-go/quic-go/internal/congestion SendAlgorithmWithDebugInfos +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination congestion.go github.com/apernet/quic-go/internal/congestion SendAlgorithmWithDebugInfos // // Package mocks is a generated GoMock package. @@ -13,7 +13,7 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/connection_flow_controller.go b/internal/mocks/connection_flow_controller.go index cfb7b6be65c..20fbafdd5f0 100644 --- a/internal/mocks/connection_flow_controller.go +++ b/internal/mocks/connection_flow_controller.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController) +// Source: github.com/apernet/quic-go/internal/flowcontrol (interfaces: ConnectionFlowController) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination connection_flow_controller.go github.com/quic-go/quic-go/internal/flowcontrol ConnectionFlowController +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination connection_flow_controller.go github.com/apernet/quic-go/internal/flowcontrol ConnectionFlowController // // Package mocks is a generated GoMock package. @@ -12,7 +12,7 @@ package mocks import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/crypto_setup.go b/internal/mocks/crypto_setup.go index 407d67f2955..5b3e9e63b33 100644 --- a/internal/mocks/crypto_setup.go +++ b/internal/mocks/crypto_setup.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/handshake (interfaces: CryptoSetup) +// Source: github.com/apernet/quic-go/internal/handshake (interfaces: CryptoSetup) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination crypto_setup_tmp.go github.com/quic-go/quic-go/internal/handshake CryptoSetup +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination crypto_setup_tmp.go github.com/apernet/quic-go/internal/handshake CryptoSetup // // Package mocks is a generated GoMock package. @@ -13,8 +13,8 @@ import ( context "context" reflect "reflect" - handshake "github.com/quic-go/quic-go/internal/handshake" - protocol "github.com/quic-go/quic-go/internal/protocol" + handshake "github.com/apernet/quic-go/internal/handshake" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/logging/connection_tracer.go b/internal/mocks/logging/connection_tracer.go index bd3a39c1707..fe5bcec1cb8 100644 --- a/internal/mocks/logging/connection_tracer.go +++ b/internal/mocks/logging/connection_tracer.go @@ -6,8 +6,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/mocks/logging/internal" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/mocks/logging/internal" + "github.com/apernet/quic-go/logging" "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/logging/internal/connection_tracer.go b/internal/mocks/logging/internal/connection_tracer.go index 0bf08211900..86a4ce8abb3 100644 --- a/internal/mocks/logging/internal/connection_tracer.go +++ b/internal/mocks/logging/internal/connection_tracer.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/mocks/logging (interfaces: ConnectionTracer) +// Source: github.com/apernet/quic-go/internal/mocks/logging (interfaces: ConnectionTracer) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package internal -destination internal/connection_tracer.go github.com/quic-go/quic-go/internal/mocks/logging ConnectionTracer +// mockgen -typed -build_flags=-tags=gomock -package internal -destination internal/connection_tracer.go github.com/apernet/quic-go/internal/mocks/logging ConnectionTracer // // Package internal is a generated GoMock package. @@ -14,10 +14,10 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" - utils "github.com/quic-go/quic-go/internal/utils" - wire "github.com/quic-go/quic-go/internal/wire" - logging "github.com/quic-go/quic-go/logging" + protocol "github.com/apernet/quic-go/internal/protocol" + utils "github.com/apernet/quic-go/internal/utils" + wire "github.com/apernet/quic-go/internal/wire" + logging "github.com/apernet/quic-go/logging" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/logging/internal/tracer.go b/internal/mocks/logging/internal/tracer.go index 2565203c49c..e260342e65c 100644 --- a/internal/mocks/logging/internal/tracer.go +++ b/internal/mocks/logging/internal/tracer.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/mocks/logging (interfaces: Tracer) +// Source: github.com/apernet/quic-go/internal/mocks/logging (interfaces: Tracer) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package internal -destination internal/tracer.go github.com/quic-go/quic-go/internal/mocks/logging Tracer +// mockgen -typed -build_flags=-tags=gomock -package internal -destination internal/tracer.go github.com/apernet/quic-go/internal/mocks/logging Tracer // // Package internal is a generated GoMock package. @@ -13,9 +13,9 @@ import ( net "net" reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" - logging "github.com/quic-go/quic-go/logging" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" + logging "github.com/apernet/quic-go/logging" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/logging/mockgen.go b/internal/mocks/logging/mockgen.go index 3759aa1adc2..863f640dfe6 100644 --- a/internal/mocks/logging/mockgen.go +++ b/internal/mocks/logging/mockgen.go @@ -6,10 +6,10 @@ import ( "net" "time" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/logging" ) -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package internal -destination internal/tracer.go github.com/quic-go/quic-go/internal/mocks/logging Tracer" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package internal -destination internal/tracer.go github.com/apernet/quic-go/internal/mocks/logging Tracer" type Tracer interface { SentPacket(net.Addr, *logging.Header, logging.ByteCount, []logging.Frame) SentVersionNegotiationPacket(_ net.Addr, dest, src logging.ArbitraryLenConnectionID, _ []logging.VersionNumber) @@ -18,7 +18,7 @@ type Tracer interface { Close() } -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package internal -destination internal/connection_tracer.go github.com/quic-go/quic-go/internal/mocks/logging ConnectionTracer" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package internal -destination internal/connection_tracer.go github.com/apernet/quic-go/internal/mocks/logging ConnectionTracer" type ConnectionTracer interface { StartedConnection(local, remote net.Addr, srcConnID, destConnID logging.ConnectionID) NegotiatedVersion(chosen logging.VersionNumber, clientVersions, serverVersions []logging.VersionNumber) diff --git a/internal/mocks/logging/tracer.go b/internal/mocks/logging/tracer.go index a4b081bffa3..1c1fe5deda8 100644 --- a/internal/mocks/logging/tracer.go +++ b/internal/mocks/logging/tracer.go @@ -5,8 +5,8 @@ package mocklogging import ( "net" - "github.com/quic-go/quic-go/internal/mocks/logging/internal" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/mocks/logging/internal" + "github.com/apernet/quic-go/logging" "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/long_header_opener.go b/internal/mocks/long_header_opener.go index 3473e586008..2c84258bee5 100644 --- a/internal/mocks/long_header_opener.go +++ b/internal/mocks/long_header_opener.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/handshake (interfaces: LongHeaderOpener) +// Source: github.com/apernet/quic-go/internal/handshake (interfaces: LongHeaderOpener) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination long_header_opener.go github.com/quic-go/quic-go/internal/handshake LongHeaderOpener +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination long_header_opener.go github.com/apernet/quic-go/internal/handshake LongHeaderOpener // // Package mocks is a generated GoMock package. @@ -12,7 +12,7 @@ package mocks import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/mockgen.go b/internal/mocks/mockgen.go index b736631d58d..2dd71613386 100644 --- a/internal/mocks/mockgen.go +++ b/internal/mocks/mockgen.go @@ -2,17 +2,17 @@ package mocks -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockquic -destination quic/stream.go github.com/quic-go/quic-go Stream" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockquic -destination quic/early_conn_tmp.go github.com/quic-go/quic-go EarlyConnection && sed 's/qtls.ConnectionState/quic.ConnectionState/g' quic/early_conn_tmp.go > quic/early_conn.go && rm quic/early_conn_tmp.go && go run golang.org/x/tools/cmd/goimports -w quic/early_conn.go" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination short_header_sealer.go github.com/quic-go/quic-go/internal/handshake ShortHeaderSealer" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination short_header_opener.go github.com/quic-go/quic-go/internal/handshake ShortHeaderOpener" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination long_header_opener.go github.com/quic-go/quic-go/internal/handshake LongHeaderOpener" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination crypto_setup_tmp.go github.com/quic-go/quic-go/internal/handshake CryptoSetup && sed -E 's~github.com/quic-go/qtls[[:alnum:]_-]*~github.com/quic-go/quic-go/internal/qtls~g; s~qtls.ConnectionStateWith0RTT~qtls.ConnectionState~g' crypto_setup_tmp.go > crypto_setup.go && rm crypto_setup_tmp.go && go run golang.org/x/tools/cmd/goimports -w crypto_setup.go" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination stream_flow_controller.go github.com/quic-go/quic-go/internal/flowcontrol StreamFlowController" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination congestion.go github.com/quic-go/quic-go/internal/congestion SendAlgorithmWithDebugInfos" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination connection_flow_controller.go github.com/quic-go/quic-go/internal/flowcontrol ConnectionFlowController" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/quic-go/quic-go/internal/ackhandler SentPacketHandler" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/quic-go/quic-go/internal/ackhandler ReceivedPacketHandler" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockquic -destination quic/stream.go github.com/apernet/quic-go Stream" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockquic -destination quic/early_conn_tmp.go github.com/apernet/quic-go EarlyConnection && sed 's/qtls.ConnectionState/quic.ConnectionState/g' quic/early_conn_tmp.go > quic/early_conn.go && rm quic/early_conn_tmp.go && go run golang.org/x/tools/cmd/goimports -w quic/early_conn.go" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination short_header_sealer.go github.com/apernet/quic-go/internal/handshake ShortHeaderSealer" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination short_header_opener.go github.com/apernet/quic-go/internal/handshake ShortHeaderOpener" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination long_header_opener.go github.com/apernet/quic-go/internal/handshake LongHeaderOpener" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination crypto_setup_tmp.go github.com/apernet/quic-go/internal/handshake CryptoSetup && sed -E 's~github.com/quic-go/qtls[[:alnum:]_-]*~github.com/apernet/quic-go/internal/qtls~g; s~qtls.ConnectionStateWith0RTT~qtls.ConnectionState~g' crypto_setup_tmp.go > crypto_setup.go && rm crypto_setup_tmp.go && go run golang.org/x/tools/cmd/goimports -w crypto_setup.go" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination stream_flow_controller.go github.com/apernet/quic-go/internal/flowcontrol StreamFlowController" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination congestion.go github.com/apernet/quic-go/internal/congestion SendAlgorithmWithDebugInfos" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mocks -destination connection_flow_controller.go github.com/apernet/quic-go/internal/flowcontrol ConnectionFlowController" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/apernet/quic-go/internal/ackhandler SentPacketHandler" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/apernet/quic-go/internal/ackhandler ReceivedPacketHandler" // The following command produces a warning message on OSX, however, it still generates the correct mock file. // See https://github.com/golang/mock/issues/339 for details. diff --git a/internal/mocks/quic/early_conn.go b/internal/mocks/quic/early_conn.go index de8db8325cc..1d5271ab334 100644 --- a/internal/mocks/quic/early_conn.go +++ b/internal/mocks/quic/early_conn.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: EarlyConnection) +// Source: github.com/apernet/quic-go (interfaces: EarlyConnection) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mockquic -destination quic/early_conn_tmp.go github.com/quic-go/quic-go EarlyConnection +// mockgen -typed -build_flags=-tags=gomock -package mockquic -destination quic/early_conn_tmp.go github.com/apernet/quic-go EarlyConnection // // Package mockquic is a generated GoMock package. @@ -14,9 +14,9 @@ import ( net "net" reflect "reflect" - quic "github.com/quic-go/quic-go" - congestion "github.com/quic-go/quic-go/congestion" - qerr "github.com/quic-go/quic-go/internal/qerr" + quic "github.com/apernet/quic-go" + congestion "github.com/apernet/quic-go/congestion" + qerr "github.com/apernet/quic-go/internal/qerr" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/quic/stream.go b/internal/mocks/quic/stream.go index 16b1f59d73d..c830294beeb 100644 --- a/internal/mocks/quic/stream.go +++ b/internal/mocks/quic/stream.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: Stream) +// Source: github.com/apernet/quic-go (interfaces: Stream) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mockquic -destination quic/stream.go github.com/quic-go/quic-go Stream +// mockgen -typed -build_flags=-tags=gomock -package mockquic -destination quic/stream.go github.com/apernet/quic-go Stream // // Package mockquic is a generated GoMock package. @@ -14,8 +14,8 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" - qerr "github.com/quic-go/quic-go/internal/qerr" + protocol "github.com/apernet/quic-go/internal/protocol" + qerr "github.com/apernet/quic-go/internal/qerr" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/short_header_opener.go b/internal/mocks/short_header_opener.go index 3fb68ad145e..e7515bcd2c3 100644 --- a/internal/mocks/short_header_opener.go +++ b/internal/mocks/short_header_opener.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/handshake (interfaces: ShortHeaderOpener) +// Source: github.com/apernet/quic-go/internal/handshake (interfaces: ShortHeaderOpener) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination short_header_opener.go github.com/quic-go/quic-go/internal/handshake ShortHeaderOpener +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination short_header_opener.go github.com/apernet/quic-go/internal/handshake ShortHeaderOpener // // Package mocks is a generated GoMock package. @@ -13,7 +13,7 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/short_header_sealer.go b/internal/mocks/short_header_sealer.go index 54d15abb9a9..34df7e040bc 100644 --- a/internal/mocks/short_header_sealer.go +++ b/internal/mocks/short_header_sealer.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/handshake (interfaces: ShortHeaderSealer) +// Source: github.com/apernet/quic-go/internal/handshake (interfaces: ShortHeaderSealer) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination short_header_sealer.go github.com/quic-go/quic-go/internal/handshake ShortHeaderSealer +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination short_header_sealer.go github.com/apernet/quic-go/internal/handshake ShortHeaderSealer // // Package mocks is a generated GoMock package. @@ -12,7 +12,7 @@ package mocks import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/mocks/stream_flow_controller.go b/internal/mocks/stream_flow_controller.go index c1ba94682a8..d34cc4c9031 100644 --- a/internal/mocks/stream_flow_controller.go +++ b/internal/mocks/stream_flow_controller.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go/internal/flowcontrol (interfaces: StreamFlowController) +// Source: github.com/apernet/quic-go/internal/flowcontrol (interfaces: StreamFlowController) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package mocks -destination stream_flow_controller.go github.com/quic-go/quic-go/internal/flowcontrol StreamFlowController +// mockgen -typed -build_flags=-tags=gomock -package mocks -destination stream_flow_controller.go github.com/apernet/quic-go/internal/flowcontrol StreamFlowController // // Package mocks is a generated GoMock package. @@ -12,7 +12,7 @@ package mocks import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/internal/qerr/errors.go b/internal/qerr/errors.go index 8f5936dfa91..376fa0d197b 100644 --- a/internal/qerr/errors.go +++ b/internal/qerr/errors.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) var ( diff --git a/internal/qerr/errors_test.go b/internal/qerr/errors_test.go index 0eeb0408ba4..bad9dbf69fe 100644 --- a/internal/qerr/errors_test.go +++ b/internal/qerr/errors_test.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/qtls/cipher_suite_test.go b/internal/qtls/cipher_suite_test.go index 716d82171bf..b369f85f4b2 100644 --- a/internal/qtls/cipher_suite_test.go +++ b/internal/qtls/cipher_suite_test.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/testdata" + "github.com/apernet/quic-go/internal/testdata" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/qtls/client_session_cache_test.go b/internal/qtls/client_session_cache_test.go index d3c747bfafb..c7d11cc97ff 100644 --- a/internal/qtls/client_session_cache_test.go +++ b/internal/qtls/client_session_cache_test.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/testdata" + "github.com/apernet/quic-go/internal/testdata" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/qtls/qtls.go b/internal/qtls/qtls.go index cdfe82a2bcb..6efa1d17061 100644 --- a/internal/qtls/qtls.go +++ b/internal/qtls/qtls.go @@ -6,7 +6,7 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) func SetupConfigForServer( diff --git a/internal/qtls/qtls_test.go b/internal/qtls/qtls_test.go index b041af74a41..a23952ce2be 100644 --- a/internal/qtls/qtls_test.go +++ b/internal/qtls/qtls_test.go @@ -5,7 +5,7 @@ import ( "net" "reflect" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/utils/log.go b/internal/utils/log.go index 89b52c0d9a7..de9dd64e72f 100644 --- a/internal/utils/log.go +++ b/internal/utils/log.go @@ -125,7 +125,7 @@ func readLoggingEnv() LogLevel { case "error": return LogLevelError default: - fmt.Fprintln(os.Stderr, "invalid quic-go log level, see https://github.com/quic-go/quic-go/wiki/Logging") + fmt.Fprintln(os.Stderr, "invalid quic-go log level, see https://github.com/apernet/quic-go/wiki/Logging") return LogLevelNothing } } diff --git a/internal/utils/ringbuffer/ringbuffer.go b/internal/utils/ringbuffer/ringbuffer.go index f9b2c797b68..64f64ce6570 100644 --- a/internal/utils/ringbuffer/ringbuffer.go +++ b/internal/utils/ringbuffer/ringbuffer.go @@ -50,7 +50,7 @@ func (r *RingBuffer[T]) PushBack(t T) { // callers might need to check if there are elements in the buffer first. func (r *RingBuffer[T]) PopFront() T { if r.Empty() { - panic("github.com/quic-go/quic-go/internal/utils/ringbuffer: pop from an empty queue") + panic("github.com/apernet/quic-go/internal/utils/ringbuffer: pop from an empty queue") } r.full = false t := r.ring[r.headPos] @@ -67,7 +67,7 @@ func (r *RingBuffer[T]) PopFront() T { // callers might need to check if there are elements in the buffer first. func (r *RingBuffer[T]) PeekFront() T { if r.Empty() { - panic("github.com/quic-go/quic-go/internal/utils/ringbuffer: peek from an empty queue") + panic("github.com/apernet/quic-go/internal/utils/ringbuffer: peek from an empty queue") } return r.ring[r.headPos] } diff --git a/internal/utils/rtt_stats.go b/internal/utils/rtt_stats.go index 463b95424f5..79b9ba26c94 100644 --- a/internal/utils/rtt_stats.go +++ b/internal/utils/rtt_stats.go @@ -3,7 +3,7 @@ package utils import ( "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) const ( diff --git a/internal/utils/rtt_stats_test.go b/internal/utils/rtt_stats_test.go index eae31926b5b..1ac30492420 100644 --- a/internal/utils/rtt_stats_test.go +++ b/internal/utils/rtt_stats_test.go @@ -3,7 +3,7 @@ package utils import ( "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/utils/streamframe_interval.go b/internal/utils/streamframe_interval.go index 78c411242b1..e63ea2fa4ce 100644 --- a/internal/utils/streamframe_interval.go +++ b/internal/utils/streamframe_interval.go @@ -3,7 +3,7 @@ package utils import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // ByteInterval is an interval from one ByteCount to the other diff --git a/internal/wire/ack_frame.go b/internal/wire/ack_frame.go index e0f2db3c71d..545da37c793 100644 --- a/internal/wire/ack_frame.go +++ b/internal/wire/ack_frame.go @@ -5,9 +5,9 @@ import ( "sort" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/quicvarint" ) var errInvalidAckRanges = errors.New("AckFrame: ACK frame contains invalid ACK ranges") diff --git a/internal/wire/ack_frame_test.go b/internal/wire/ack_frame_test.go index d201331ab5a..a6e3bc3313b 100644 --- a/internal/wire/ack_frame_test.go +++ b/internal/wire/ack_frame_test.go @@ -5,8 +5,8 @@ import ( "math" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/ack_range.go b/internal/wire/ack_range.go index 03a1235ee0d..9c4f38be753 100644 --- a/internal/wire/ack_range.go +++ b/internal/wire/ack_range.go @@ -1,6 +1,6 @@ package wire -import "github.com/quic-go/quic-go/internal/protocol" +import "github.com/apernet/quic-go/internal/protocol" // AckRange is an ACK range type AckRange struct { diff --git a/internal/wire/connection_close_frame.go b/internal/wire/connection_close_frame.go index be11a1b2ecb..4c68d55dab1 100644 --- a/internal/wire/connection_close_frame.go +++ b/internal/wire/connection_close_frame.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A ConnectionCloseFrame is a CONNECTION_CLOSE frame diff --git a/internal/wire/connection_close_frame_test.go b/internal/wire/connection_close_frame_test.go index a7db15fb0c2..ec022d61d83 100644 --- a/internal/wire/connection_close_frame_test.go +++ b/internal/wire/connection_close_frame_test.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/crypto_frame.go b/internal/wire/crypto_frame.go index 0aa7fe7bc76..89e5b1af85a 100644 --- a/internal/wire/crypto_frame.go +++ b/internal/wire/crypto_frame.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A CryptoFrame is a CRYPTO frame diff --git a/internal/wire/crypto_frame_test.go b/internal/wire/crypto_frame_test.go index 7eecab8977e..4bd718c3f3e 100644 --- a/internal/wire/crypto_frame_test.go +++ b/internal/wire/crypto_frame_test.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/data_blocked_frame.go b/internal/wire/data_blocked_frame.go index c97d4c62948..329d5a9ad9e 100644 --- a/internal/wire/data_blocked_frame.go +++ b/internal/wire/data_blocked_frame.go @@ -1,8 +1,8 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A DataBlockedFrame is a DATA_BLOCKED frame diff --git a/internal/wire/data_blocked_frame_test.go b/internal/wire/data_blocked_frame_test.go index 38e781eee3e..f20a88f8d33 100644 --- a/internal/wire/data_blocked_frame_test.go +++ b/internal/wire/data_blocked_frame_test.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/datagram_frame.go b/internal/wire/datagram_frame.go index a8995053e94..c3367ac7b5a 100644 --- a/internal/wire/datagram_frame.go +++ b/internal/wire/datagram_frame.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // MaxDatagramSize is the maximum size of a DATAGRAM frame (RFC 9221). diff --git a/internal/wire/datagram_frame_test.go b/internal/wire/datagram_frame_test.go index 214db3e3fae..7d72bde9f0e 100644 --- a/internal/wire/datagram_frame_test.go +++ b/internal/wire/datagram_frame_test.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/extended_header.go b/internal/wire/extended_header.go index 6e3b1224b01..ca8150baa11 100644 --- a/internal/wire/extended_header.go +++ b/internal/wire/extended_header.go @@ -7,9 +7,9 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/quicvarint" ) // ErrInvalidReservedBits is returned when the reserved bits are incorrect. diff --git a/internal/wire/extended_header_test.go b/internal/wire/extended_header_test.go index e71e1519a39..aa3356430df 100644 --- a/internal/wire/extended_header_test.go +++ b/internal/wire/extended_header_test.go @@ -5,9 +5,9 @@ import ( "log" "os" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/frame_parser.go b/internal/wire/frame_parser.go index 59d41444a39..6fc179e0dc9 100644 --- a/internal/wire/frame_parser.go +++ b/internal/wire/frame_parser.go @@ -6,9 +6,9 @@ import ( "io" "reflect" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" ) const ( diff --git a/internal/wire/frame_parser_test.go b/internal/wire/frame_parser_test.go index 4f8ccefeafd..58374f478ae 100644 --- a/internal/wire/frame_parser_test.go +++ b/internal/wire/frame_parser_test.go @@ -7,8 +7,8 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/handshake_done_frame.go b/internal/wire/handshake_done_frame.go index 85dd6474559..8a9321eee95 100644 --- a/internal/wire/handshake_done_frame.go +++ b/internal/wire/handshake_done_frame.go @@ -1,7 +1,7 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // A HandshakeDoneFrame is a HANDSHAKE_DONE frame diff --git a/internal/wire/handshake_done_frame_test.go b/internal/wire/handshake_done_frame_test.go index ee058414d15..9b567f222fa 100644 --- a/internal/wire/handshake_done_frame_test.go +++ b/internal/wire/handshake_done_frame_test.go @@ -1,7 +1,7 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/header.go b/internal/wire/header.go index 5ec74b16c2f..2976cd762d8 100644 --- a/internal/wire/header.go +++ b/internal/wire/header.go @@ -7,8 +7,8 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // ParseConnectionID parses the destination connection ID of a packet. diff --git a/internal/wire/header_test.go b/internal/wire/header_test.go index a0d1657f1fe..0320ee6ccba 100644 --- a/internal/wire/header_test.go +++ b/internal/wire/header_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/interface.go b/internal/wire/interface.go index bc17883b5a5..d3cd79b89cb 100644 --- a/internal/wire/interface.go +++ b/internal/wire/interface.go @@ -1,7 +1,7 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // A Frame in QUIC diff --git a/internal/wire/log.go b/internal/wire/log.go index c8b28d924c2..4c34fbfb651 100644 --- a/internal/wire/log.go +++ b/internal/wire/log.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) // LogFrame logs a frame, either sent or received diff --git a/internal/wire/log_test.go b/internal/wire/log_test.go index f71b6256f67..a29b9361667 100644 --- a/internal/wire/log_test.go +++ b/internal/wire/log_test.go @@ -6,8 +6,8 @@ import ( "os" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/max_data_frame.go b/internal/wire/max_data_frame.go index 5819c027393..042c9d88b62 100644 --- a/internal/wire/max_data_frame.go +++ b/internal/wire/max_data_frame.go @@ -1,8 +1,8 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A MaxDataFrame carries flow control information for the connection diff --git a/internal/wire/max_data_frame_test.go b/internal/wire/max_data_frame_test.go index ed8b6d87c1f..0f2523c77f3 100644 --- a/internal/wire/max_data_frame_test.go +++ b/internal/wire/max_data_frame_test.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/max_stream_data_frame.go b/internal/wire/max_stream_data_frame.go index db9091af8e1..0559ded7fea 100644 --- a/internal/wire/max_stream_data_frame.go +++ b/internal/wire/max_stream_data_frame.go @@ -1,8 +1,8 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A MaxStreamDataFrame is a MAX_STREAM_DATA frame diff --git a/internal/wire/max_stream_data_frame_test.go b/internal/wire/max_stream_data_frame_test.go index f3a6e92aa2f..45269d740c3 100644 --- a/internal/wire/max_stream_data_frame_test.go +++ b/internal/wire/max_stream_data_frame_test.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/max_streams_frame.go b/internal/wire/max_streams_frame.go index a8745bd124d..528dac686f2 100644 --- a/internal/wire/max_streams_frame.go +++ b/internal/wire/max_streams_frame.go @@ -3,8 +3,8 @@ package wire import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A MaxStreamsFrame is a MAX_STREAMS frame diff --git a/internal/wire/max_streams_frame_test.go b/internal/wire/max_streams_frame_test.go index ae41e849a12..93daa008e86 100644 --- a/internal/wire/max_streams_frame_test.go +++ b/internal/wire/max_streams_frame_test.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/new_connection_id_frame.go b/internal/wire/new_connection_id_frame.go index 852d46ef148..741c6bf2b68 100644 --- a/internal/wire/new_connection_id_frame.go +++ b/internal/wire/new_connection_id_frame.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A NewConnectionIDFrame is a NEW_CONNECTION_ID frame diff --git a/internal/wire/new_connection_id_frame_test.go b/internal/wire/new_connection_id_frame_test.go index e29aa98b368..d5deeb65035 100644 --- a/internal/wire/new_connection_id_frame_test.go +++ b/internal/wire/new_connection_id_frame_test.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/new_token_frame.go b/internal/wire/new_token_frame.go index f1d4d00fe66..a2a1242c748 100644 --- a/internal/wire/new_token_frame.go +++ b/internal/wire/new_token_frame.go @@ -4,8 +4,8 @@ import ( "errors" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A NewTokenFrame is a NEW_TOKEN frame diff --git a/internal/wire/new_token_frame_test.go b/internal/wire/new_token_frame_test.go index d835895edbd..f5758721559 100644 --- a/internal/wire/new_token_frame_test.go +++ b/internal/wire/new_token_frame_test.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/path_challenge_frame.go b/internal/wire/path_challenge_frame.go index 2aca989fa6b..e8e30e901c8 100644 --- a/internal/wire/path_challenge_frame.go +++ b/internal/wire/path_challenge_frame.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // A PathChallengeFrame is a PATH_CHALLENGE frame diff --git a/internal/wire/path_challenge_frame_test.go b/internal/wire/path_challenge_frame_test.go index b6d9b8e0d61..f1ad918a21a 100644 --- a/internal/wire/path_challenge_frame_test.go +++ b/internal/wire/path_challenge_frame_test.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/path_response_frame.go b/internal/wire/path_response_frame.go index 76532c8527b..d0e98a0cccb 100644 --- a/internal/wire/path_response_frame.go +++ b/internal/wire/path_response_frame.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // A PathResponseFrame is a PATH_RESPONSE frame diff --git a/internal/wire/path_response_frame_test.go b/internal/wire/path_response_frame_test.go index f66c1de2aa7..e90b43e340a 100644 --- a/internal/wire/path_response_frame_test.go +++ b/internal/wire/path_response_frame_test.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/ping_frame.go b/internal/wire/ping_frame.go index 71f8d16c38f..0464af0c196 100644 --- a/internal/wire/ping_frame.go +++ b/internal/wire/ping_frame.go @@ -1,7 +1,7 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // A PingFrame is a PING frame diff --git a/internal/wire/ping_frame_test.go b/internal/wire/ping_frame_test.go index 8f8fb5d973f..49c1a70ce8a 100644 --- a/internal/wire/ping_frame_test.go +++ b/internal/wire/ping_frame_test.go @@ -1,7 +1,7 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/pool.go b/internal/wire/pool.go index 18ab437937d..0ce69787044 100644 --- a/internal/wire/pool.go +++ b/internal/wire/pool.go @@ -3,7 +3,7 @@ package wire import ( "sync" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) var pool sync.Pool diff --git a/internal/wire/reset_stream_frame.go b/internal/wire/reset_stream_frame.go index a20029af26b..887ebccf5e0 100644 --- a/internal/wire/reset_stream_frame.go +++ b/internal/wire/reset_stream_frame.go @@ -1,9 +1,9 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" ) // A ResetStreamFrame is a RESET_STREAM frame in QUIC diff --git a/internal/wire/reset_stream_frame_test.go b/internal/wire/reset_stream_frame_test.go index 61e33b0d6df..c4167d402f4 100644 --- a/internal/wire/reset_stream_frame_test.go +++ b/internal/wire/reset_stream_frame_test.go @@ -1,9 +1,9 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/retire_connection_id_frame.go b/internal/wire/retire_connection_id_frame.go index 27aeff8428b..f7cfaeeeae7 100644 --- a/internal/wire/retire_connection_id_frame.go +++ b/internal/wire/retire_connection_id_frame.go @@ -1,8 +1,8 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A RetireConnectionIDFrame is a RETIRE_CONNECTION_ID frame diff --git a/internal/wire/retire_connection_id_frame_test.go b/internal/wire/retire_connection_id_frame_test.go index a6eae1f96cf..ab8b47314ff 100644 --- a/internal/wire/retire_connection_id_frame_test.go +++ b/internal/wire/retire_connection_id_frame_test.go @@ -3,7 +3,7 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/short_header.go b/internal/wire/short_header.go index 69aa8341185..c755df5cf70 100644 --- a/internal/wire/short_header.go +++ b/internal/wire/short_header.go @@ -5,8 +5,8 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) // ParseShortHeader parses a short header packet. diff --git a/internal/wire/short_header_test.go b/internal/wire/short_header_test.go index 64146ecfb02..780d4651d59 100644 --- a/internal/wire/short_header_test.go +++ b/internal/wire/short_header_test.go @@ -7,8 +7,8 @@ import ( "os" "testing" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/stop_sending_frame.go b/internal/wire/stop_sending_frame.go index a2326f8ec42..2c7bbcd28ca 100644 --- a/internal/wire/stop_sending_frame.go +++ b/internal/wire/stop_sending_frame.go @@ -1,9 +1,9 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" ) // A StopSendingFrame is a STOP_SENDING frame diff --git a/internal/wire/stop_sending_frame_test.go b/internal/wire/stop_sending_frame_test.go index abf350ec1f0..2123a07e967 100644 --- a/internal/wire/stop_sending_frame_test.go +++ b/internal/wire/stop_sending_frame_test.go @@ -3,9 +3,9 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/stream_data_blocked_frame.go b/internal/wire/stream_data_blocked_frame.go index 3762ec76acd..1877901e595 100644 --- a/internal/wire/stream_data_blocked_frame.go +++ b/internal/wire/stream_data_blocked_frame.go @@ -1,8 +1,8 @@ package wire import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A StreamDataBlockedFrame is a STREAM_DATA_BLOCKED frame diff --git a/internal/wire/stream_data_blocked_frame_test.go b/internal/wire/stream_data_blocked_frame_test.go index 4d833a356f7..59319ef6a77 100644 --- a/internal/wire/stream_data_blocked_frame_test.go +++ b/internal/wire/stream_data_blocked_frame_test.go @@ -3,8 +3,8 @@ package wire import ( "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/stream_frame.go b/internal/wire/stream_frame.go index f9470ecd6c4..26599b5d6e3 100644 --- a/internal/wire/stream_frame.go +++ b/internal/wire/stream_frame.go @@ -4,8 +4,8 @@ import ( "errors" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A StreamFrame of QUIC diff --git a/internal/wire/stream_frame_test.go b/internal/wire/stream_frame_test.go index 8bcc1edcb9c..963a782c61f 100644 --- a/internal/wire/stream_frame_test.go +++ b/internal/wire/stream_frame_test.go @@ -4,8 +4,8 @@ import ( "bytes" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/streams_blocked_frame.go b/internal/wire/streams_blocked_frame.go index c946fec31bf..3a145d24633 100644 --- a/internal/wire/streams_blocked_frame.go +++ b/internal/wire/streams_blocked_frame.go @@ -3,8 +3,8 @@ package wire import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" ) // A StreamsBlockedFrame is a STREAMS_BLOCKED frame diff --git a/internal/wire/streams_blocked_frame_test.go b/internal/wire/streams_blocked_frame_test.go index 1e3fcb07718..bf701d3b350 100644 --- a/internal/wire/streams_blocked_frame_test.go +++ b/internal/wire/streams_blocked_frame_test.go @@ -4,8 +4,8 @@ import ( "fmt" "io" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/transport_parameter_test.go b/internal/wire/transport_parameter_test.go index 4fa9b59464d..0708a9e0ca6 100644 --- a/internal/wire/transport_parameter_test.go +++ b/internal/wire/transport_parameter_test.go @@ -10,9 +10,9 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/transport_parameters.go b/internal/wire/transport_parameters.go index cee74b8fa4f..6507fdc8d09 100644 --- a/internal/wire/transport_parameters.go +++ b/internal/wire/transport_parameters.go @@ -10,9 +10,9 @@ import ( "slices" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/quicvarint" ) // AdditionalTransportParametersClient are additional transport parameters that will be added diff --git a/internal/wire/version_negotiation.go b/internal/wire/version_negotiation.go index a551aa8c958..3bbaaaab76c 100644 --- a/internal/wire/version_negotiation.go +++ b/internal/wire/version_negotiation.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "errors" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // ParseVersionNegotiationPacket parses a Version Negotiation packet. diff --git a/internal/wire/version_negotiation_test.go b/internal/wire/version_negotiation_test.go index c5fe3e68a70..61113c5e670 100644 --- a/internal/wire/version_negotiation_test.go +++ b/internal/wire/version_negotiation_test.go @@ -6,7 +6,7 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/internal/wire/wire_suite_test.go b/internal/wire/wire_suite_test.go index 33d3601bd74..84ea35a355b 100644 --- a/internal/wire/wire_suite_test.go +++ b/internal/wire/wire_suite_test.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "testing" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/quicvarint" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/quicvarint" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/interop/client/main.go b/interop/client/main.go index d8198f9c543..90aa8e6f5b0 100644 --- a/interop/client/main.go +++ b/interop/client/main.go @@ -14,13 +14,13 @@ import ( "golang.org/x/sync/errgroup" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/http3" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qtls" - "github.com/quic-go/quic-go/interop/http09" - "github.com/quic-go/quic-go/interop/utils" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/http3" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qtls" + "github.com/apernet/quic-go/interop/http09" + "github.com/apernet/quic-go/interop/utils" ) var errUnsupported = errors.New("unsupported test case") diff --git a/interop/http09/client.go b/interop/http09/client.go index b6de79efc4c..bc3d477b681 100644 --- a/interop/http09/client.go +++ b/interop/http09/client.go @@ -13,7 +13,7 @@ import ( "golang.org/x/net/idna" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) // MethodGet0RTT allows a GET request to be sent using 0-RTT. diff --git a/interop/http09/http_test.go b/interop/http09/http_test.go index 03f39263853..6d8c77fc43d 100644 --- a/interop/http09/http_test.go +++ b/interop/http09/http_test.go @@ -9,8 +9,8 @@ import ( "net/http/httptest" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/testdata" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/testdata" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/interop/http09/server.go b/interop/http09/server.go index 7a1f30b8995..da007c1c53d 100644 --- a/interop/http09/server.go +++ b/interop/http09/server.go @@ -12,7 +12,7 @@ import ( "strings" "sync" - "github.com/quic-go/quic-go" + "github.com/apernet/quic-go" ) const h09alpn = "hq-interop" diff --git a/interop/server/main.go b/interop/server/main.go index fee8aaebb14..84d9d3a1ace 100644 --- a/interop/server/main.go +++ b/interop/server/main.go @@ -7,11 +7,11 @@ import ( "net/http" "os" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/http3" - "github.com/quic-go/quic-go/internal/qtls" - "github.com/quic-go/quic-go/interop/http09" - "github.com/quic-go/quic-go/interop/utils" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/http3" + "github.com/apernet/quic-go/internal/qtls" + "github.com/apernet/quic-go/interop/http09" + "github.com/apernet/quic-go/interop/utils" ) var tlsConf *tls.Config diff --git a/interop/utils/logging.go b/interop/utils/logging.go index fa076ef47fe..f071ab028ce 100644 --- a/interop/utils/logging.go +++ b/interop/utils/logging.go @@ -9,10 +9,10 @@ import ( "os" "strings" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" - "github.com/quic-go/quic-go/qlog" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" + "github.com/apernet/quic-go/qlog" ) // GetSSLKeyLog creates a file for the TLS key log diff --git a/logging/frame.go b/logging/frame.go index 9a055db3595..fea226582da 100644 --- a/logging/frame.go +++ b/logging/frame.go @@ -1,6 +1,6 @@ package logging -import "github.com/quic-go/quic-go/internal/wire" +import "github.com/apernet/quic-go/internal/wire" // A Frame is a QUIC frame type Frame interface{} diff --git a/logging/interface.go b/logging/interface.go index a618a1893d3..762673c1268 100644 --- a/logging/interface.go +++ b/logging/interface.go @@ -3,10 +3,10 @@ package logging import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) type ( diff --git a/logging/multiplex_test.go b/logging/multiplex_test.go index 7c519f384ed..304bdc3efde 100644 --- a/logging/multiplex_test.go +++ b/logging/multiplex_test.go @@ -5,10 +5,10 @@ import ( "net" "time" - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - . "github.com/quic-go/quic-go/logging" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + . "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/logging/packet_header.go b/logging/packet_header.go index 6b8df58d8ac..0a1691d0a64 100644 --- a/logging/packet_header.go +++ b/logging/packet_header.go @@ -1,7 +1,7 @@ package logging import ( - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" ) // PacketTypeFromHeader determines the packet type from a *wire.Header. diff --git a/logging/packet_header_test.go b/logging/packet_header_test.go index 66810a9c940..88509c4981b 100644 --- a/logging/packet_header_test.go +++ b/logging/packet_header_test.go @@ -1,9 +1,9 @@ package logging_test import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - . "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + . "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/metrics/connection_tracer.go b/metrics/connection_tracer.go index 431a94df15f..ba0212780cd 100644 --- a/metrics/connection_tracer.go +++ b/metrics/connection_tracer.go @@ -7,9 +7,9 @@ import ( "net" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/logging" "github.com/prometheus/client_golang/prometheus" ) diff --git a/metrics/tracer.go b/metrics/tracer.go index 41245bbd2a7..15ff61b0954 100644 --- a/metrics/tracer.go +++ b/metrics/tracer.go @@ -5,9 +5,9 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/logging" "github.com/prometheus/client_golang/prometheus" ) diff --git a/mock_ack_frame_source_test.go b/mock_ack_frame_source_test.go index 5459c8c1656..84546bf795d 100644 --- a/mock_ack_frame_source_test.go +++ b/mock_ack_frame_source_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: AckFrameSource) +// Source: github.com/apernet/quic-go (interfaces: AckFrameSource) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_ack_frame_source_test.go github.com/quic-go/quic-go AckFrameSource +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_ack_frame_source_test.go github.com/apernet/quic-go AckFrameSource // // Package quic is a generated GoMock package. @@ -12,8 +12,8 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_batch_conn_test.go b/mock_batch_conn_test.go index ea74b4e8313..3cc78916195 100644 --- a/mock_batch_conn_test.go +++ b/mock_batch_conn_test.go @@ -3,7 +3,7 @@ // // Generated by this command: // -// mockgen -typed -package quic -self_package github.com/quic-go/quic-go -source sys_conn_oob.go -destination mock_batch_conn_test.go -mock_names batchConn=MockBatchConn +// mockgen -typed -package quic -self_package github.com/apernet/quic-go -source sys_conn_oob.go -destination mock_batch_conn_test.go -mock_names batchConn=MockBatchConn // // Package quic is a generated GoMock package. diff --git a/mock_conn_runner_test.go b/mock_conn_runner_test.go index f9928165bae..4ad90e5e019 100644 --- a/mock_conn_runner_test.go +++ b/mock_conn_runner_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: ConnRunner) +// Source: github.com/apernet/quic-go (interfaces: ConnRunner) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_conn_runner_test.go github.com/quic-go/quic-go ConnRunner +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_conn_runner_test.go github.com/apernet/quic-go ConnRunner // // Package quic is a generated GoMock package. @@ -12,7 +12,7 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_crypto_data_handler_test.go b/mock_crypto_data_handler_test.go index 96fb3d8edd3..0cbbac8bfb0 100644 --- a/mock_crypto_data_handler_test.go +++ b/mock_crypto_data_handler_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: CryptoDataHandler) +// Source: github.com/apernet/quic-go (interfaces: CryptoDataHandler) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_crypto_data_handler_test.go github.com/quic-go/quic-go CryptoDataHandler +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_crypto_data_handler_test.go github.com/apernet/quic-go CryptoDataHandler // // Package quic is a generated GoMock package. @@ -12,8 +12,8 @@ package quic import ( reflect "reflect" - handshake "github.com/quic-go/quic-go/internal/handshake" - protocol "github.com/quic-go/quic-go/internal/protocol" + handshake "github.com/apernet/quic-go/internal/handshake" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_crypto_stream_test.go b/mock_crypto_stream_test.go index bd762d643ff..22aff50df5b 100644 --- a/mock_crypto_stream_test.go +++ b/mock_crypto_stream_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: CryptoStream) +// Source: github.com/apernet/quic-go (interfaces: CryptoStream) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_crypto_stream_test.go github.com/quic-go/quic-go CryptoStream +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_crypto_stream_test.go github.com/apernet/quic-go CryptoStream // // Package quic is a generated GoMock package. @@ -12,8 +12,8 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_frame_source_test.go b/mock_frame_source_test.go index 9aa8be714b0..34dbc45e304 100644 --- a/mock_frame_source_test.go +++ b/mock_frame_source_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: FrameSource) +// Source: github.com/apernet/quic-go (interfaces: FrameSource) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_frame_source_test.go github.com/quic-go/quic-go FrameSource +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_frame_source_test.go github.com/apernet/quic-go FrameSource // // Package quic is a generated GoMock package. @@ -12,8 +12,8 @@ package quic import ( reflect "reflect" - ackhandler "github.com/quic-go/quic-go/internal/ackhandler" - protocol "github.com/quic-go/quic-go/internal/protocol" + ackhandler "github.com/apernet/quic-go/internal/ackhandler" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_mtu_discoverer_test.go b/mock_mtu_discoverer_test.go index 236c6a1d591..60f921c0e47 100644 --- a/mock_mtu_discoverer_test.go +++ b/mock_mtu_discoverer_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: MTUDiscoverer) +// Source: github.com/apernet/quic-go (interfaces: MTUDiscoverer) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_mtu_discoverer_test.go github.com/quic-go/quic-go MTUDiscoverer +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_mtu_discoverer_test.go github.com/apernet/quic-go MTUDiscoverer // // Package quic is a generated GoMock package. @@ -13,8 +13,8 @@ import ( reflect "reflect" time "time" - ackhandler "github.com/quic-go/quic-go/internal/ackhandler" - protocol "github.com/quic-go/quic-go/internal/protocol" + ackhandler "github.com/apernet/quic-go/internal/ackhandler" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_packer_test.go b/mock_packer_test.go index 1d9ec1cc4e6..1778e5420b6 100644 --- a/mock_packer_test.go +++ b/mock_packer_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: Packer) +// Source: github.com/apernet/quic-go (interfaces: Packer) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_packer_test.go github.com/quic-go/quic-go Packer +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_packer_test.go github.com/apernet/quic-go Packer // // Package quic is a generated GoMock package. @@ -12,9 +12,9 @@ package quic import ( reflect "reflect" - ackhandler "github.com/quic-go/quic-go/internal/ackhandler" - protocol "github.com/quic-go/quic-go/internal/protocol" - qerr "github.com/quic-go/quic-go/internal/qerr" + ackhandler "github.com/apernet/quic-go/internal/ackhandler" + protocol "github.com/apernet/quic-go/internal/protocol" + qerr "github.com/apernet/quic-go/internal/qerr" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_packet_handler_manager_test.go b/mock_packet_handler_manager_test.go index 465a38651ba..95cb4c765aa 100644 --- a/mock_packet_handler_manager_test.go +++ b/mock_packet_handler_manager_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: PacketHandlerManager) +// Source: github.com/apernet/quic-go (interfaces: PacketHandlerManager) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_packet_handler_manager_test.go github.com/quic-go/quic-go PacketHandlerManager +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_packet_handler_manager_test.go github.com/apernet/quic-go PacketHandlerManager // // Package quic is a generated GoMock package. @@ -12,7 +12,7 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_packet_handler_test.go b/mock_packet_handler_test.go index 46c99f8c635..e34d7bd706c 100644 --- a/mock_packet_handler_test.go +++ b/mock_packet_handler_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: PacketHandler) +// Source: github.com/apernet/quic-go (interfaces: PacketHandler) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_packet_handler_test.go github.com/quic-go/quic-go PacketHandler +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_packet_handler_test.go github.com/apernet/quic-go PacketHandler // // Package quic is a generated GoMock package. @@ -12,7 +12,7 @@ package quic import ( reflect "reflect" - qerr "github.com/quic-go/quic-go/internal/qerr" + qerr "github.com/apernet/quic-go/internal/qerr" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_packetconn_test.go b/mock_packetconn_test.go index 45d36cbac5e..4bb5e9295d9 100644 --- a/mock_packetconn_test.go +++ b/mock_packetconn_test.go @@ -3,7 +3,7 @@ // // Generated by this command: // -// mockgen -typed -package quic -self_package github.com/quic-go/quic-go -self_package github.com/quic-go/quic-go -destination mock_packetconn_test.go net PacketConn +// mockgen -typed -package quic -self_package github.com/apernet/quic-go -self_package github.com/apernet/quic-go -destination mock_packetconn_test.go net PacketConn // // Package quic is a generated GoMock package. diff --git a/mock_quic_conn_test.go b/mock_quic_conn_test.go index ad01990d0a0..4dc18503020 100644 --- a/mock_quic_conn_test.go +++ b/mock_quic_conn_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: QUICConn) +// Source: github.com/apernet/quic-go (interfaces: QUICConn) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_quic_conn_test.go github.com/quic-go/quic-go QUICConn +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_quic_conn_test.go github.com/apernet/quic-go QUICConn // // Package quic is a generated GoMock package. @@ -14,8 +14,8 @@ import ( net "net" reflect "reflect" - congestion "github.com/quic-go/quic-go/congestion" - qerr "github.com/quic-go/quic-go/internal/qerr" + congestion "github.com/apernet/quic-go/congestion" + qerr "github.com/apernet/quic-go/internal/qerr" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_raw_conn_test.go b/mock_raw_conn_test.go index 68f76ec2a92..dbdd4331b8e 100644 --- a/mock_raw_conn_test.go +++ b/mock_raw_conn_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: RawConn) +// Source: github.com/apernet/quic-go (interfaces: RawConn) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_raw_conn_test.go github.com/quic-go/quic-go RawConn +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_raw_conn_test.go github.com/apernet/quic-go RawConn // // Package quic is a generated GoMock package. @@ -14,7 +14,7 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_receive_stream_internal_test.go b/mock_receive_stream_internal_test.go index c2faf38007c..e0da9d47f8f 100644 --- a/mock_receive_stream_internal_test.go +++ b/mock_receive_stream_internal_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: ReceiveStreamI) +// Source: github.com/apernet/quic-go (interfaces: ReceiveStreamI) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_receive_stream_internal_test.go github.com/quic-go/quic-go ReceiveStreamI +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_receive_stream_internal_test.go github.com/apernet/quic-go ReceiveStreamI // // Package quic is a generated GoMock package. @@ -13,9 +13,9 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" - qerr "github.com/quic-go/quic-go/internal/qerr" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + qerr "github.com/apernet/quic-go/internal/qerr" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_sealing_manager_test.go b/mock_sealing_manager_test.go index 0c209ea52d6..1d985899dfe 100644 --- a/mock_sealing_manager_test.go +++ b/mock_sealing_manager_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: SealingManager) +// Source: github.com/apernet/quic-go (interfaces: SealingManager) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_sealing_manager_test.go github.com/quic-go/quic-go SealingManager +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_sealing_manager_test.go github.com/apernet/quic-go SealingManager // // Package quic is a generated GoMock package. @@ -12,7 +12,7 @@ package quic import ( reflect "reflect" - handshake "github.com/quic-go/quic-go/internal/handshake" + handshake "github.com/apernet/quic-go/internal/handshake" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_send_conn_test.go b/mock_send_conn_test.go index 93df057e75f..06e9c7a7607 100644 --- a/mock_send_conn_test.go +++ b/mock_send_conn_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: SendConn) +// Source: github.com/apernet/quic-go (interfaces: SendConn) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_send_conn_test.go github.com/quic-go/quic-go SendConn +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_send_conn_test.go github.com/apernet/quic-go SendConn // // Package quic is a generated GoMock package. @@ -13,7 +13,7 @@ import ( net "net" reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_send_stream_internal_test.go b/mock_send_stream_internal_test.go index 51a67cc1682..a03d72987de 100644 --- a/mock_send_stream_internal_test.go +++ b/mock_send_stream_internal_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: SendStreamI) +// Source: github.com/apernet/quic-go (interfaces: SendStreamI) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_send_stream_internal_test.go github.com/quic-go/quic-go SendStreamI +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_send_stream_internal_test.go github.com/apernet/quic-go SendStreamI // // Package quic is a generated GoMock package. @@ -14,10 +14,10 @@ import ( reflect "reflect" time "time" - ackhandler "github.com/quic-go/quic-go/internal/ackhandler" - protocol "github.com/quic-go/quic-go/internal/protocol" - qerr "github.com/quic-go/quic-go/internal/qerr" - wire "github.com/quic-go/quic-go/internal/wire" + ackhandler "github.com/apernet/quic-go/internal/ackhandler" + protocol "github.com/apernet/quic-go/internal/protocol" + qerr "github.com/apernet/quic-go/internal/qerr" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_sender_test.go b/mock_sender_test.go index 02cce86ef83..3bb46689057 100644 --- a/mock_sender_test.go +++ b/mock_sender_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: Sender) +// Source: github.com/apernet/quic-go (interfaces: Sender) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_sender_test.go github.com/quic-go/quic-go Sender +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_sender_test.go github.com/apernet/quic-go Sender // // Package quic is a generated GoMock package. @@ -12,7 +12,7 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_stream_getter_test.go b/mock_stream_getter_test.go index 8eaf121a694..338f57658b3 100644 --- a/mock_stream_getter_test.go +++ b/mock_stream_getter_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: StreamGetter) +// Source: github.com/apernet/quic-go (interfaces: StreamGetter) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_getter_test.go github.com/quic-go/quic-go StreamGetter +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_stream_getter_test.go github.com/apernet/quic-go StreamGetter // // Package quic is a generated GoMock package. @@ -12,7 +12,7 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" + protocol "github.com/apernet/quic-go/internal/protocol" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_stream_internal_test.go b/mock_stream_internal_test.go index 212256d87bc..c9f9d6d5959 100644 --- a/mock_stream_internal_test.go +++ b/mock_stream_internal_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: StreamI) +// Source: github.com/apernet/quic-go (interfaces: StreamI) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_internal_test.go github.com/quic-go/quic-go StreamI +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_stream_internal_test.go github.com/apernet/quic-go StreamI // // Package quic is a generated GoMock package. @@ -14,10 +14,10 @@ import ( reflect "reflect" time "time" - ackhandler "github.com/quic-go/quic-go/internal/ackhandler" - protocol "github.com/quic-go/quic-go/internal/protocol" - qerr "github.com/quic-go/quic-go/internal/qerr" - wire "github.com/quic-go/quic-go/internal/wire" + ackhandler "github.com/apernet/quic-go/internal/ackhandler" + protocol "github.com/apernet/quic-go/internal/protocol" + qerr "github.com/apernet/quic-go/internal/qerr" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_stream_manager_test.go b/mock_stream_manager_test.go index 6bafb60d7c7..beaa61b0b89 100644 --- a/mock_stream_manager_test.go +++ b/mock_stream_manager_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: StreamManager) +// Source: github.com/apernet/quic-go (interfaces: StreamManager) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_manager_test.go github.com/quic-go/quic-go StreamManager +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_stream_manager_test.go github.com/apernet/quic-go StreamManager // // Package quic is a generated GoMock package. @@ -13,8 +13,8 @@ import ( context "context" reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_stream_sender_test.go b/mock_stream_sender_test.go index 7900211845c..b53b8ba95de 100644 --- a/mock_stream_sender_test.go +++ b/mock_stream_sender_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: StreamSender) +// Source: github.com/apernet/quic-go (interfaces: StreamSender) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_sender_test.go github.com/quic-go/quic-go StreamSender +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_stream_sender_test.go github.com/apernet/quic-go StreamSender // // Package quic is a generated GoMock package. @@ -12,8 +12,8 @@ package quic import ( reflect "reflect" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mock_token_store_test.go b/mock_token_store_test.go index b2a3a30c140..4f4b8aabeaa 100644 --- a/mock_token_store_test.go +++ b/mock_token_store_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: TokenStore) +// Source: github.com/apernet/quic-go (interfaces: TokenStore) // // Generated by this command: // -// mockgen -typed -package quic -self_package github.com/quic-go/quic-go -self_package github.com/quic-go/quic-go -destination mock_token_store_test.go github.com/quic-go/quic-go TokenStore +// mockgen -typed -package quic -self_package github.com/apernet/quic-go -self_package github.com/apernet/quic-go -destination mock_token_store_test.go github.com/apernet/quic-go TokenStore // // Package quic is a generated GoMock package. diff --git a/mock_unpacker_test.go b/mock_unpacker_test.go index 4923fdcfca2..460fda5dd8f 100644 --- a/mock_unpacker_test.go +++ b/mock_unpacker_test.go @@ -1,9 +1,9 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/quic-go/quic-go (interfaces: Unpacker) +// Source: github.com/apernet/quic-go (interfaces: Unpacker) // // Generated by this command: // -// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/quic-go/quic-go -destination mock_unpacker_test.go github.com/quic-go/quic-go Unpacker +// mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/apernet/quic-go -destination mock_unpacker_test.go github.com/apernet/quic-go Unpacker // // Package quic is a generated GoMock package. @@ -13,8 +13,8 @@ import ( reflect "reflect" time "time" - protocol "github.com/quic-go/quic-go/internal/protocol" - wire "github.com/quic-go/quic-go/internal/wire" + protocol "github.com/apernet/quic-go/internal/protocol" + wire "github.com/apernet/quic-go/internal/wire" gomock "go.uber.org/mock/gomock" ) diff --git a/mockgen.go b/mockgen.go index 81cc4a5ef57..212083da81b 100644 --- a/mockgen.go +++ b/mockgen.go @@ -2,75 +2,75 @@ package quic -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_send_conn_test.go github.com/quic-go/quic-go SendConn" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_send_conn_test.go github.com/apernet/quic-go SendConn" type SendConn = sendConn -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_raw_conn_test.go github.com/quic-go/quic-go RawConn" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_raw_conn_test.go github.com/apernet/quic-go RawConn" type RawConn = rawConn -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_sender_test.go github.com/quic-go/quic-go Sender" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_sender_test.go github.com/apernet/quic-go Sender" type Sender = sender -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_internal_test.go github.com/quic-go/quic-go StreamI" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_stream_internal_test.go github.com/apernet/quic-go StreamI" type StreamI = streamI -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_crypto_stream_test.go github.com/quic-go/quic-go CryptoStream" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_crypto_stream_test.go github.com/apernet/quic-go CryptoStream" type CryptoStream = cryptoStream -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_receive_stream_internal_test.go github.com/quic-go/quic-go ReceiveStreamI" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_receive_stream_internal_test.go github.com/apernet/quic-go ReceiveStreamI" type ReceiveStreamI = receiveStreamI -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_send_stream_internal_test.go github.com/quic-go/quic-go SendStreamI" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_send_stream_internal_test.go github.com/apernet/quic-go SendStreamI" type SendStreamI = sendStreamI -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_getter_test.go github.com/quic-go/quic-go StreamGetter" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_stream_getter_test.go github.com/apernet/quic-go StreamGetter" type StreamGetter = streamGetter -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_sender_test.go github.com/quic-go/quic-go StreamSender" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_stream_sender_test.go github.com/apernet/quic-go StreamSender" type StreamSender = streamSender -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_crypto_data_handler_test.go github.com/quic-go/quic-go CryptoDataHandler" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_crypto_data_handler_test.go github.com/apernet/quic-go CryptoDataHandler" type CryptoDataHandler = cryptoDataHandler -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_frame_source_test.go github.com/quic-go/quic-go FrameSource" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_frame_source_test.go github.com/apernet/quic-go FrameSource" type FrameSource = frameSource -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_ack_frame_source_test.go github.com/quic-go/quic-go AckFrameSource" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_ack_frame_source_test.go github.com/apernet/quic-go AckFrameSource" type AckFrameSource = ackFrameSource -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_stream_manager_test.go github.com/quic-go/quic-go StreamManager" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_stream_manager_test.go github.com/apernet/quic-go StreamManager" type StreamManager = streamManager -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_sealing_manager_test.go github.com/quic-go/quic-go SealingManager" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_sealing_manager_test.go github.com/apernet/quic-go SealingManager" type SealingManager = sealingManager -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_unpacker_test.go github.com/quic-go/quic-go Unpacker" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_unpacker_test.go github.com/apernet/quic-go Unpacker" type Unpacker = unpacker -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_packer_test.go github.com/quic-go/quic-go Packer" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_packer_test.go github.com/apernet/quic-go Packer" type Packer = packer -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_mtu_discoverer_test.go github.com/quic-go/quic-go MTUDiscoverer" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_mtu_discoverer_test.go github.com/apernet/quic-go MTUDiscoverer" type MTUDiscoverer = mtuDiscoverer -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_conn_runner_test.go github.com/quic-go/quic-go ConnRunner" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_conn_runner_test.go github.com/apernet/quic-go ConnRunner" type ConnRunner = connRunner -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_quic_conn_test.go github.com/quic-go/quic-go QUICConn" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_quic_conn_test.go github.com/apernet/quic-go QUICConn" type QUICConn = quicConn -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_packet_handler_test.go github.com/quic-go/quic-go PacketHandler" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_packet_handler_test.go github.com/apernet/quic-go PacketHandler" type PacketHandler = packetHandler -//go:generate sh -c "go run go.uber.org/mock/mockgen -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_packet_handler_manager_test.go github.com/quic-go/quic-go PacketHandlerManager" +//go:generate sh -c "go run go.uber.org/mock/mockgen -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_packet_handler_manager_test.go github.com/apernet/quic-go PacketHandlerManager" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/quic-go/quic-go -destination mock_packet_handler_manager_test.go github.com/quic-go/quic-go PacketHandlerManager" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/apernet/quic-go -destination mock_packet_handler_manager_test.go github.com/apernet/quic-go PacketHandlerManager" type PacketHandlerManager = packetHandlerManager // Need to use source mode for the batchConn, since reflect mode follows type aliases. // See https://github.com/golang/mock/issues/244 for details. // -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/quic-go/quic-go -source sys_conn_oob.go -destination mock_batch_conn_test.go -mock_names batchConn=MockBatchConn" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/apernet/quic-go -source sys_conn_oob.go -destination mock_batch_conn_test.go -mock_names batchConn=MockBatchConn" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/quic-go/quic-go -self_package github.com/quic-go/quic-go -destination mock_token_store_test.go github.com/quic-go/quic-go TokenStore" -//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/quic-go/quic-go -self_package github.com/quic-go/quic-go -destination mock_packetconn_test.go net PacketConn" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/apernet/quic-go -self_package github.com/apernet/quic-go -destination mock_token_store_test.go github.com/apernet/quic-go TokenStore" +//go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/apernet/quic-go -self_package github.com/apernet/quic-go -destination mock_packetconn_test.go net PacketConn" diff --git a/mtu_discoverer.go b/mtu_discoverer.go index 3f3a640ae2f..8c4fda78a7a 100644 --- a/mtu_discoverer.go +++ b/mtu_discoverer.go @@ -3,11 +3,11 @@ package quic import ( "time" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" ) type mtuDiscoverer interface { diff --git a/mtu_discoverer_test.go b/mtu_discoverer_test.go index ff764670014..3bd2ae005dd 100644 --- a/mtu_discoverer_test.go +++ b/mtu_discoverer_test.go @@ -6,9 +6,9 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/multiplexer.go b/multiplexer.go index 85f7f4034e3..dd9b23919cf 100644 --- a/multiplexer.go +++ b/multiplexer.go @@ -5,7 +5,7 @@ import ( "net" "sync" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" ) var ( @@ -54,7 +54,7 @@ func (m *connMultiplexer) AddConn(c indexableConn) { if ok { // Panics if we're already listening on this connection. // This is a safeguard because we're introducing a breaking API change, see - // https://github.com/quic-go/quic-go/issues/3727 for details. + // https://github.com/apernet/quic-go/issues/3727 for details. // We'll remove this at a later time, when most users of the library have made the switch. panic("connection already exists") // TODO: write a nice message } diff --git a/oss-fuzz.sh b/oss-fuzz.sh index 22a577fe16e..5691fae309f 100644 --- a/oss-fuzz.sh +++ b/oss-fuzz.sh @@ -17,11 +17,11 @@ compile_go_fuzzer github.com/quic-go/qpack/fuzzing Fuzz qpack_fuzzer ( # fuzz quic-go -compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/frames Fuzz frame_fuzzer -compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/header Fuzz header_fuzzer -compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/transportparameters Fuzz transportparameter_fuzzer -compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/tokens Fuzz token_fuzzer -compile_go_fuzzer github.com/quic-go/quic-go/fuzzing/handshake Fuzz handshake_fuzzer +compile_go_fuzzer github.com/apernet/quic-go/fuzzing/frames Fuzz frame_fuzzer +compile_go_fuzzer github.com/apernet/quic-go/fuzzing/header Fuzz header_fuzzer +compile_go_fuzzer github.com/apernet/quic-go/fuzzing/transportparameters Fuzz transportparameter_fuzzer +compile_go_fuzzer github.com/apernet/quic-go/fuzzing/tokens Fuzz token_fuzzer +compile_go_fuzzer github.com/apernet/quic-go/fuzzing/handshake Fuzz handshake_fuzzer if [ $SANITIZER == "coverage" ]; then # no need for corpora if coverage @@ -29,7 +29,7 @@ if [ $SANITIZER == "coverage" ]; then fi # generate seed corpora -cd $GOPATH/src/github.com/quic-go/quic-go/ +cd $GOPATH/src/github.com/apernet/quic-go/ go generate -x ./fuzzing/... zip --quiet -r $OUT/header_fuzzer_seed_corpus.zip fuzzing/header/corpus diff --git a/packet_handler_map.go b/packet_handler_map.go index 7840202cc63..9216f8f36b1 100644 --- a/packet_handler_map.go +++ b/packet_handler_map.go @@ -10,8 +10,8 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) type connCapabilities struct { diff --git a/packet_handler_map_test.go b/packet_handler_map_test.go index d41108cd231..9488448714d 100644 --- a/packet_handler_map_test.go +++ b/packet_handler_map_test.go @@ -6,8 +6,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/packet_packer.go b/packet_packer.go index e707734fb46..e9c99e09ccb 100644 --- a/packet_packer.go +++ b/packet_packer.go @@ -8,11 +8,11 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" ) var errNothingToPack = errors.New("nothing to pack") diff --git a/packet_packer_test.go b/packet_packer_test.go index e0c2bb7fa28..f44c73d426b 100644 --- a/packet_packer_test.go +++ b/packet_packer_test.go @@ -8,14 +8,14 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/mocks" - mockackhandler "github.com/quic-go/quic-go/internal/mocks/ackhandler" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/mocks" + mockackhandler "github.com/apernet/quic-go/internal/mocks/ackhandler" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/packet_unpacker.go b/packet_unpacker.go index 1034aab1dbb..b55d9859909 100644 --- a/packet_unpacker.go +++ b/packet_unpacker.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" ) type headerDecryptor interface { diff --git a/packet_unpacker_test.go b/packet_unpacker_test.go index 035a431d062..fb5203ccf76 100644 --- a/packet_unpacker_test.go +++ b/packet_unpacker_test.go @@ -4,11 +4,11 @@ import ( "errors" "time" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/qlog/connection_tracer.go b/qlog/connection_tracer.go index 3ea0ce11ca8..1749a7ccdcf 100644 --- a/qlog/connection_tracer.go +++ b/qlog/connection_tracer.go @@ -5,10 +5,10 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" "github.com/francoispqt/gojay" ) diff --git a/qlog/connection_tracer_test.go b/qlog/connection_tracer_test.go index a6207c777f3..dd59b3bc8d8 100644 --- a/qlog/connection_tracer_test.go +++ b/qlog/connection_tracer_test.go @@ -8,11 +8,11 @@ import ( "net/netip" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/qlog/event.go b/qlog/event.go index 7602b55cec4..5dfbd7c9d91 100644 --- a/qlog/event.go +++ b/qlog/event.go @@ -7,10 +7,10 @@ import ( "net/netip" "time" - "github.com/quic-go/quic-go" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" "github.com/francoispqt/gojay" ) diff --git a/qlog/frame.go b/qlog/frame.go index 0d44f073b51..eb987eb7b8a 100644 --- a/qlog/frame.go +++ b/qlog/frame.go @@ -3,8 +3,8 @@ package qlog import ( "fmt" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" "github.com/francoispqt/gojay" ) diff --git a/qlog/frame_test.go b/qlog/frame_test.go index 0cee3847c75..d875b3cdf47 100644 --- a/qlog/frame_test.go +++ b/qlog/frame_test.go @@ -5,9 +5,9 @@ import ( "encoding/json" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/logging" "github.com/francoispqt/gojay" . "github.com/onsi/ginkgo/v2" diff --git a/qlog/packet_header.go b/qlog/packet_header.go index 53c9f2b0da7..e257d07f695 100644 --- a/qlog/packet_header.go +++ b/qlog/packet_header.go @@ -3,8 +3,8 @@ package qlog import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" "github.com/francoispqt/gojay" ) diff --git a/qlog/packet_header_test.go b/qlog/packet_header_test.go index e4ed264a8fe..d957c8e38e8 100644 --- a/qlog/packet_header_test.go +++ b/qlog/packet_header_test.go @@ -6,9 +6,9 @@ import ( "github.com/francoispqt/gojay" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/qlog/qlog_dir.go b/qlog/qlog_dir.go index 5ea5e3ae21f..d03ddb6e6ba 100644 --- a/qlog/qlog_dir.go +++ b/qlog/qlog_dir.go @@ -8,8 +8,8 @@ import ( "os" "strings" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/logging" ) // DefaultTracer creates a qlog file in the qlog directory specified by the QLOGDIR environment variable. diff --git a/qlog/qlog_dir_test.go b/qlog/qlog_dir_test.go index 837465a5159..f963e72ddef 100644 --- a/qlog/qlog_dir_test.go +++ b/qlog/qlog_dir_test.go @@ -7,8 +7,8 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" ) var _ = Describe("qlog dir tests", Serial, func() { diff --git a/qlog/trace.go b/qlog/trace.go index c183368d9a6..b42fa01cd73 100644 --- a/qlog/trace.go +++ b/qlog/trace.go @@ -4,14 +4,14 @@ import ( "runtime/debug" "time" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/logging" "github.com/francoispqt/gojay" ) // Setting of this only works when quic-go is used as a library. // When building a binary from this repository, the version can be set using the following go build flag: -// -ldflags="-X github.com/quic-go/quic-go/qlog.quicGoVersion=foobar" +// -ldflags="-X github.com/apernet/quic-go/qlog.quicGoVersion=foobar" var quicGoVersion = "(devel)" func init() { @@ -23,7 +23,7 @@ func init() { return } for _, d := range info.Deps { - if d.Path == "github.com/quic-go/quic-go" { + if d.Path == "github.com/apernet/quic-go" { quicGoVersion = d.Version if d.Replace != nil { if len(d.Replace.Version) > 0 { diff --git a/qlog/tracer.go b/qlog/tracer.go index 562f7a26c62..63d74e398f4 100644 --- a/qlog/tracer.go +++ b/qlog/tracer.go @@ -5,8 +5,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" ) func NewTracer(w io.WriteCloser) *logging.Tracer { diff --git a/qlog/tracer_test.go b/qlog/tracer_test.go index 8aa8faa5a47..570a4d14b23 100644 --- a/qlog/tracer_test.go +++ b/qlog/tracer_test.go @@ -6,8 +6,8 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/qlog/types.go b/qlog/types.go index 20f105943db..ae89202fcf3 100644 --- a/qlog/types.go +++ b/qlog/types.go @@ -3,9 +3,9 @@ package qlog import ( "fmt" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/logging" ) type owner uint8 diff --git a/qlog/types_test.go b/qlog/types_test.go index d6be3e68a4e..1dded2e4869 100644 --- a/qlog/types_test.go +++ b/qlog/types_test.go @@ -8,9 +8,9 @@ import ( "runtime" "strconv" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/qlog/writer_test.go b/qlog/writer_test.go index 8b4437ed93d..e62f209aade 100644 --- a/qlog/writer_test.go +++ b/qlog/writer_test.go @@ -7,7 +7,7 @@ import ( "log" "os" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/receive_stream.go b/receive_stream.go index 19759ad99d0..5e3fa5e8086 100644 --- a/receive_stream.go +++ b/receive_stream.go @@ -6,11 +6,11 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) type receiveStreamI interface { diff --git a/receive_stream_test.go b/receive_stream_test.go index d0ef7f3119f..5e6ce305802 100644 --- a/receive_stream_test.go +++ b/receive_stream_test.go @@ -8,9 +8,9 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/retransmission_queue.go b/retransmission_queue.go index 14ae1e3b88e..75e33333bce 100644 --- a/retransmission_queue.go +++ b/retransmission_queue.go @@ -3,10 +3,10 @@ package quic import ( "fmt" - "github.com/quic-go/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) type retransmissionQueue struct { diff --git a/retransmission_queue_test.go b/retransmission_queue_test.go index c0132848cb4..c14ded73619 100644 --- a/retransmission_queue_test.go +++ b/retransmission_queue_test.go @@ -1,8 +1,8 @@ package quic import ( - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/send_conn.go b/send_conn.go index 7f4c3c2c79e..33bf4361bd3 100644 --- a/send_conn.go +++ b/send_conn.go @@ -4,8 +4,8 @@ import ( "net" "sync/atomic" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) // A sendConn allows sending using a simple Write() on a non-connected packet conn. diff --git a/send_conn_test.go b/send_conn_test.go index f69c77e7619..52c6f450ec4 100644 --- a/send_conn_test.go +++ b/send_conn_test.go @@ -5,8 +5,8 @@ import ( "net/netip" "runtime" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/send_queue.go b/send_queue.go index bde02334858..f6a01380a6c 100644 --- a/send_queue.go +++ b/send_queue.go @@ -1,6 +1,6 @@ package quic -import "github.com/quic-go/quic-go/internal/protocol" +import "github.com/apernet/quic-go/internal/protocol" type sender interface { Send(p *packetBuffer, gsoSize uint16, ecn protocol.ECN) diff --git a/send_queue_test.go b/send_queue_test.go index f5513062a48..02e42699d0f 100644 --- a/send_queue_test.go +++ b/send_queue_test.go @@ -3,7 +3,7 @@ package quic import ( "errors" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/send_stream.go b/send_stream.go index 06659e864af..ee3dc26735e 100644 --- a/send_stream.go +++ b/send_stream.go @@ -6,12 +6,12 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" ) type sendStreamI interface { diff --git a/send_stream_test.go b/send_stream_test.go index db460a525b3..07eb2a454d8 100644 --- a/send_stream_test.go +++ b/send_stream_test.go @@ -11,10 +11,10 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/server.go b/server.go index a55bdd43b21..7ce11dcbb66 100644 --- a/server.go +++ b/server.go @@ -9,12 +9,12 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" ) // ErrServerClosed is returned by the Listener or EarlyListener's Accept method after a call to Close. diff --git a/server_test.go b/server_test.go index 2bede3c08d0..3e40b6d9cb2 100644 --- a/server_test.go +++ b/server_test.go @@ -12,14 +12,14 @@ import ( "golang.org/x/time/rate" - "github.com/quic-go/quic-go/internal/handshake" - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/testdata" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/handshake" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/testdata" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/stream.go b/stream.go index d6c809ad792..aa5d97a1bd3 100644 --- a/stream.go +++ b/stream.go @@ -7,10 +7,10 @@ import ( "sync" "time" - "github.com/quic-go/quic-go/internal/ackhandler" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/ackhandler" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) type deadlineError struct{} diff --git a/stream_test.go b/stream_test.go index 5d0e64b5aa5..ac89ced5c5e 100644 --- a/stream_test.go +++ b/stream_test.go @@ -8,9 +8,9 @@ import ( "strconv" "time" - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/streams_map.go b/streams_map.go index 0ba23b2543f..45e7bdb8bd8 100644 --- a/streams_map.go +++ b/streams_map.go @@ -7,10 +7,10 @@ import ( "net" "sync" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" ) type streamError struct { diff --git a/streams_map_incoming.go b/streams_map_incoming.go index 18ec6f998b0..1354e634455 100644 --- a/streams_map_incoming.go +++ b/streams_map_incoming.go @@ -4,8 +4,8 @@ import ( "context" "sync" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) type incomingStream interface { diff --git a/streams_map_incoming_test.go b/streams_map_incoming_test.go index b5abba51873..d12da66d938 100644 --- a/streams_map_incoming_test.go +++ b/streams_map_incoming_test.go @@ -7,8 +7,8 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/streams_map_outgoing.go b/streams_map_outgoing.go index fd45f4e7cf1..0574d32e424 100644 --- a/streams_map_outgoing.go +++ b/streams_map_outgoing.go @@ -4,8 +4,8 @@ import ( "context" "sync" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) type outgoingStream interface { diff --git a/streams_map_outgoing_test.go b/streams_map_outgoing_test.go index 0d84ef5279f..ee89d6e9b97 100644 --- a/streams_map_outgoing_test.go +++ b/streams_map_outgoing_test.go @@ -10,8 +10,8 @@ import ( "golang.org/x/exp/rand" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/streams_map_test.go b/streams_map_test.go index b4a2d91ffae..270285ba7e4 100644 --- a/streams_map_test.go +++ b/streams_map_test.go @@ -6,11 +6,11 @@ import ( "fmt" "net" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/qerr" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/qerr" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/sys_conn.go b/sys_conn.go index a50c4c7a7c0..299cdef0827 100644 --- a/sys_conn.go +++ b/sys_conn.go @@ -5,8 +5,8 @@ import ( "syscall" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) // OOBCapablePacketConn is a connection that allows the reading of ECN bits from the IP header. diff --git a/sys_conn_buffers.go b/sys_conn_buffers.go index 8fe49162c01..b2b64faeaee 100644 --- a/sys_conn_buffers.go +++ b/sys_conn_buffers.go @@ -6,8 +6,8 @@ import ( "net" "syscall" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) //go:generate sh -c "echo '// Code generated by go generate. DO NOT EDIT.\n// Source: sys_conn_buffers.go\n' > sys_conn_buffers_write.go && sed -e 's/SetReadBuffer/SetWriteBuffer/g' -e 's/setReceiveBuffer/setSendBuffer/g' -e 's/inspectReadBuffer/inspectWriteBuffer/g' -e 's/protocol\\.DesiredReceiveBufferSize/protocol\\.DesiredSendBufferSize/g' -e 's/forceSetReceiveBuffer/forceSetSendBuffer/g' -e 's/receive buffer/send buffer/g' sys_conn_buffers.go | sed '/^\\/\\/go:generate/d' >> sys_conn_buffers_write.go" diff --git a/sys_conn_buffers_write.go b/sys_conn_buffers_write.go index c01a931b5f7..0468bbe906b 100644 --- a/sys_conn_buffers_write.go +++ b/sys_conn_buffers_write.go @@ -9,8 +9,8 @@ import ( "net" "syscall" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) func setSendBuffer(c net.PacketConn) error { diff --git a/sys_conn_df_darwin.go b/sys_conn_df_darwin.go index b51cd8f1a73..9dda8cfc467 100644 --- a/sys_conn_df_darwin.go +++ b/sys_conn_df_darwin.go @@ -10,7 +10,7 @@ import ( "golang.org/x/sys/unix" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" ) func setDF(rawConn syscall.RawConn) (bool, error) { @@ -39,7 +39,7 @@ func setDF(rawConn syscall.RawConn) (bool, error) { // On macOS, the syscall for setting DF bit for IPv4 fails on dual-stack listeners. // Treat the connection as not having DF enabled, even though the DF bit will be set // when used for IPv6. - // See https://github.com/quic-go/quic-go/issues/3793 for details. + // See https://github.com/apernet/quic-go/issues/3793 for details. return false, nil case errDFIPv4 != nil && errDFIPv6 != nil: return false, errors.New("setting DF failed for both IPv4 and IPv6") diff --git a/sys_conn_df_linux.go b/sys_conn_df_linux.go index 5ba360b628c..a03323b19c0 100644 --- a/sys_conn_df_linux.go +++ b/sys_conn_df_linux.go @@ -8,7 +8,7 @@ import ( "golang.org/x/sys/unix" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" ) func setDF(rawConn syscall.RawConn) (bool, error) { diff --git a/sys_conn_df_windows.go b/sys_conn_df_windows.go index 850d620ddd5..9c390115000 100644 --- a/sys_conn_df_windows.go +++ b/sys_conn_df_windows.go @@ -8,7 +8,7 @@ import ( "golang.org/x/sys/windows" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/utils" ) const ( diff --git a/sys_conn_oob.go b/sys_conn_oob.go index a6795ca268c..3b039e20ca2 100644 --- a/sys_conn_oob.go +++ b/sys_conn_oob.go @@ -19,8 +19,8 @@ import ( "golang.org/x/net/ipv6" "golang.org/x/sys/unix" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" ) const ( diff --git a/sys_conn_oob_test.go b/sys_conn_oob_test.go index a24480aba82..e92bfb28a1e 100644 --- a/sys_conn_oob_test.go +++ b/sys_conn_oob_test.go @@ -10,8 +10,8 @@ import ( "golang.org/x/net/ipv4" "golang.org/x/sys/unix" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/sys_conn_test.go b/sys_conn_test.go index 5eb0417a730..3f91c3b3591 100644 --- a/sys_conn_test.go +++ b/sys_conn_test.go @@ -4,7 +4,7 @@ import ( "net" "time" - "github.com/quic-go/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/protocol" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/testutils/frames.go b/testutils/frames.go index 41787668e52..547e0b076c8 100644 --- a/testutils/frames.go +++ b/testutils/frames.go @@ -1,6 +1,6 @@ package testutils -import "github.com/quic-go/quic-go/internal/wire" +import "github.com/apernet/quic-go/internal/wire" type ( Frame = wire.Frame diff --git a/testutils/testutils.go b/testutils/testutils.go index efeb90455fd..c14ea23f6a8 100644 --- a/testutils/testutils.go +++ b/testutils/testutils.go @@ -6,9 +6,9 @@ package testutils import ( "fmt" - "github.com/quic-go/quic-go/internal/handshake" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/handshake" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) // writePacket returns a new raw packet with the specified header and payload diff --git a/token_store.go b/token_store.go index a5c1c1852f3..d93d305da4b 100644 --- a/token_store.go +++ b/token_store.go @@ -3,7 +3,7 @@ package quic import ( "sync" - list "github.com/quic-go/quic-go/internal/utils/linkedlist" + list "github.com/apernet/quic-go/internal/utils/linkedlist" ) type singleOriginTokenStore struct { diff --git a/transport.go b/transport.go index ae5b75acda3..c3d9358894d 100644 --- a/transport.go +++ b/transport.go @@ -10,10 +10,10 @@ import ( "sync/atomic" "time" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/utils" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/utils" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" ) var errListenerAlreadySet = errors.New("listener already set") @@ -364,7 +364,7 @@ func (t *Transport) listen(conn rawConn) { //nolint:staticcheck // SA1019 ignore this! // TODO: This code is used to ignore wsa errors on Windows. // Since net.Error.Temporary is deprecated as of Go 1.18, we should find a better solution. - // See https://github.com/quic-go/quic-go/issues/1737 for details. + // See https://github.com/apernet/quic-go/issues/1737 for details. if nerr, ok := err.(net.Error); ok && nerr.Temporary() { t.mutex.Lock() closed := t.closed diff --git a/transport_test.go b/transport_test.go index aeeb1153c98..d9ad4353e61 100644 --- a/transport_test.go +++ b/transport_test.go @@ -10,10 +10,10 @@ import ( "syscall" "time" - mocklogging "github.com/quic-go/quic-go/internal/mocks/logging" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" - "github.com/quic-go/quic-go/logging" + mocklogging "github.com/apernet/quic-go/internal/mocks/logging" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" + "github.com/apernet/quic-go/logging" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" diff --git a/window_update_queue.go b/window_update_queue.go index 9ed121430e1..0a3b3500d51 100644 --- a/window_update_queue.go +++ b/window_update_queue.go @@ -3,9 +3,9 @@ package quic import ( "sync" - "github.com/quic-go/quic-go/internal/flowcontrol" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/flowcontrol" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" ) type windowUpdateQueue struct { diff --git a/window_update_queue_test.go b/window_update_queue_test.go index 492fd5964aa..c29a910b508 100644 --- a/window_update_queue_test.go +++ b/window_update_queue_test.go @@ -1,9 +1,9 @@ package quic import ( - "github.com/quic-go/quic-go/internal/mocks" - "github.com/quic-go/quic-go/internal/protocol" - "github.com/quic-go/quic-go/internal/wire" + "github.com/apernet/quic-go/internal/mocks" + "github.com/apernet/quic-go/internal/protocol" + "github.com/apernet/quic-go/internal/wire" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega"