|
|
@@ -23,7 +23,6 @@ import (
|
|
|
"math"
|
|
|
"math/big"
|
|
|
"math/rand/v2"
|
|
|
- "net"
|
|
|
"net/http"
|
|
|
"net/netip"
|
|
|
"os"
|
|
|
@@ -341,17 +340,6 @@ type PacketForwarder interface {
|
|
|
String() string
|
|
|
}
|
|
|
|
|
|
-// Conn is the subset of the underlying net.Conn the DERP Server needs.
|
|
|
-// It is a defined type so that non-net connections can be used.
|
|
|
-type Conn interface {
|
|
|
- io.WriteCloser
|
|
|
- LocalAddr() net.Addr
|
|
|
- // The *Deadline methods follow the semantics of net.Conn.
|
|
|
- SetDeadline(time.Time) error
|
|
|
- SetReadDeadline(time.Time) error
|
|
|
- SetWriteDeadline(time.Time) error
|
|
|
-}
|
|
|
-
|
|
|
var packetsDropped = metrics.NewMultiLabelMap[dropReasonKindLabels](
|
|
|
"derp_packets_dropped",
|
|
|
"counter",
|