mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:14:02 +03:00
Add support of EventDomainFronting event
This commit is contained in:
+3
-3
@@ -9,7 +9,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type connTelegramTraffic struct {
|
||||
type connTraffic struct {
|
||||
net.Conn
|
||||
|
||||
connID string
|
||||
@@ -17,7 +17,7 @@ type connTelegramTraffic struct {
|
||||
ctx context.Context
|
||||
}
|
||||
|
||||
func (c connTelegramTraffic) Read(b []byte) (int, error) {
|
||||
func (c connTraffic) Read(b []byte) (int, error) {
|
||||
n, err := c.Conn.Read(b)
|
||||
|
||||
if n > 0 {
|
||||
@@ -32,7 +32,7 @@ func (c connTelegramTraffic) Read(b []byte) (int, error) {
|
||||
return n, err // nolint: wrapcheck
|
||||
}
|
||||
|
||||
func (c connTelegramTraffic) Write(b []byte) (int, error) {
|
||||
func (c connTraffic) Write(b []byte) (int, error) {
|
||||
n, err := c.Conn.Write(b)
|
||||
|
||||
if n > 0 {
|
||||
|
||||
Reference in New Issue
Block a user