mirror of https://github.com/v2ray/v2ray-core
Format: run go fmt ./...
parent
4c9210cf11
commit
1fa89b32d4
|
@ -200,7 +200,7 @@ func (h *Handler) Dial(ctx context.Context, dest net.Destination) (internet.Conn
|
||||||
return h.getStatCouterConnection(conn), err
|
return h.getStatCouterConnection(conn), err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Handler) getStatCouterConnection(conn internet.Connection) (internet.Connection) {
|
func (h *Handler) getStatCouterConnection(conn internet.Connection) internet.Connection {
|
||||||
if h.uplinkCounter != nil || h.downlinkCounter != nil {
|
if h.uplinkCounter != nil || h.downlinkCounter != nil {
|
||||||
return &internet.StatCouterConnection{
|
return &internet.StatCouterConnection{
|
||||||
Connection: conn,
|
Connection: conn,
|
||||||
|
|
|
@ -2,8 +2,8 @@ package sidh
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
. "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny"
|
|
||||||
"io"
|
"io"
|
||||||
|
. "v2ray.com/core/external/github.com/cloudflare/sidh/internal/isogeny"
|
||||||
)
|
)
|
||||||
|
|
||||||
// I keep it bool in order to be able to apply logical NOT
|
// I keep it bool in order to be able to apply logical NOT
|
||||||
|
|
|
@ -3,8 +3,8 @@ package quic
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
|
|
||||||
"v2ray.com/core/common/bytespool"
|
"v2ray.com/core/common/bytespool"
|
||||||
|
"v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/protocol"
|
||||||
)
|
)
|
||||||
|
|
||||||
type packetBuffer struct {
|
type packetBuffer struct {
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"v2ray.com/core/external/github.com/cloudflare/sidh/sidh"
|
|
||||||
"golang.org/x/crypto/curve25519"
|
"golang.org/x/crypto/curve25519"
|
||||||
|
"v2ray.com/core/external/github.com/cloudflare/sidh/sidh"
|
||||||
)
|
)
|
||||||
|
|
||||||
// numSessionTickets is the number of different session tickets the
|
// numSessionTickets is the number of different session tickets the
|
||||||
|
|
|
@ -50,7 +50,6 @@ func ReadTCPSession(user *protocol.MemoryUser, reader io.Reader) (*protocol.Requ
|
||||||
DrainSize := BaseDrainSize + 16 + 38 + RandDrainRolled
|
DrainSize := BaseDrainSize + 16 + 38 + RandDrainRolled
|
||||||
readSizeRemain := DrainSize
|
readSizeRemain := DrainSize
|
||||||
|
|
||||||
|
|
||||||
buffer := buf.New()
|
buffer := buf.New()
|
||||||
defer buffer.Release()
|
defer buffer.Release()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue