Skip to content

Commit

Permalink
feat: rename the module
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Sep 15, 2023
1 parent 80ebd7e commit 08d89f0
Show file tree
Hide file tree
Showing 338 changed files with 904 additions and 904 deletions.
4 changes: 2 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img src="docs/quic.png" width=303 height=124>

[![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)

Expand Down Expand Up @@ -226,4 +226,4 @@ This had led to a lot of pain in the Go ecosystem, and we're happy that we can r

## 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.
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ 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
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).
2 changes: 1 addition & 1 deletion buffer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion buffer_pool_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions closed_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"math/bits"
"net"

"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 closedLocalConn is a connection that we closed locally.
Expand Down
4 changes: 2 additions & 2 deletions closed_conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package quic
import (
"net"

"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"
Expand Down
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"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
Expand Down
6 changes: 3 additions & 3 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,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"
Expand Down
2 changes: 1 addition & 1 deletion congestion/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package congestion
import (
"time"

"github.com/quic-go/quic-go/internal/protocol"
"github.com/apernet/quic-go/internal/protocol"
)

type (
Expand Down
8 changes: 4 additions & 4 deletions conn_id_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ 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"
"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 connIDGenerator struct {
Expand Down
6 changes: 3 additions & 3 deletions conn_id_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions conn_id_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions conn_id_manager_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
24 changes: 12 additions & 12 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -302,7 +302,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,
Expand Down Expand Up @@ -410,7 +410,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,
}
Expand Down
22 changes: 11 additions & 11 deletions connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,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/testutils"
"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/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/testutils"
"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"
Expand Down
2 changes: 1 addition & 1 deletion connection_timer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions crypto_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ 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/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 cryptoStream interface {
Expand Down
6 changes: 3 additions & 3 deletions crypto_stream_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions crypto_stream_manager_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions crypto_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions datagram_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"sync"

"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 datagramQueue struct {
Expand Down
4 changes: 2 additions & 2 deletions datagram_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"errors"

"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"
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package quic
import (
"fmt"

"github.com/quic-go/quic-go/internal/qerr"
"github.com/apernet/quic-go/internal/qerr"
)

type (
Expand Down
12 changes: 6 additions & 6 deletions example/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ 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/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/http3"
"github.com/apernet/quic-go/internal/testdata"
"github.com/apernet/quic-go/internal/utils"
"github.com/apernet/quic-go/logging"
"github.com/apernet/quic-go/qlog"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion example/echo/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"log"
"math/big"

"github.com/quic-go/quic-go"
"github.com/apernet/quic-go"
)

const addr = "localhost:4242"
Expand Down
Loading

0 comments on commit 08d89f0

Please sign in to comment.