浏览代码

Rename module from mtg to github.com/9seconds/mtg

tags/v1.0.1
9seconds 6 年前
父节点
当前提交
843fc4b70f
共有 52 个文件被更改,包括 120 次插入120 次删除
  1. 1
    1
      antireplay/init.go
  2. 1
    1
      cli/generate.go
  3. 10
    10
      cli/proxy.go
  4. 8
    8
      faketls/client_protocol.go
  5. 1
    1
      go.mod
  6. 4
    4
      hub/connection.go
  7. 1
    1
      hub/connection_list.go
  8. 1
    1
      hub/hub.go
  9. 1
    1
      hub/interface.go
  10. 2
    2
      hub/mux.go
  11. 3
    3
      hub/proxy_conn.go
  12. 5
    5
      main.go
  13. 6
    6
      mtproto/protocol.go
  14. 1
    1
      mtproto/rpc/proxy_response.go
  15. 7
    7
      obfuscated2/client_protocol.go
  16. 5
    5
      obfuscated2/telegram_protocol.go
  17. 1
    1
      protocol/interfaces.go
  18. 1
    1
      protocol/request.go
  19. 3
    3
      proxy/direct.go
  20. 3
    3
      proxy/middle.go
  21. 6
    6
      proxy/proxy.go
  22. 1
    1
      stats/interfaces.go
  23. 1
    1
      stats/multi_stats.go
  24. 1
    1
      stats/stats.go
  25. 2
    2
      stats/stats_prometheus.go
  26. 2
    2
      stats/stats_statsd.go
  27. 1
    1
      telegram/api/addresses.go
  28. 1
    1
      telegram/api/api.go
  29. 3
    3
      telegram/base.go
  30. 1
    1
      telegram/direct.go
  31. 1
    1
      telegram/interfaces.go
  32. 2
    2
      telegram/middle.go
  33. 2
    2
      tlstypes/client_hello.go
  34. 1
    1
      tlstypes/handshake.go
  35. 1
    1
      tlstypes/server_hello.go
  36. 1
    1
      utils/init_tcp.go
  37. 1
    1
      wrappers/packet/mtproto_frame.go
  38. 2
    2
      wrappers/packetack/client_abridged.go
  39. 1
    1
      wrappers/packetack/client_intermediate.go
  40. 1
    1
      wrappers/packetack/client_intermediate_secure.go
  41. 5
    5
      wrappers/packetack/proxy.go
  42. 1
    1
      wrappers/stream/base.go
  43. 2
    2
      wrappers/stream/blockcipher.go
  44. 2
    2
      wrappers/stream/conn.go
  45. 1
    1
      wrappers/stream/ctx.go
  46. 2
    2
      wrappers/stream/faketls.go
  47. 3
    3
      wrappers/stream/mtproto_cipher.go
  48. 1
    1
      wrappers/stream/obfuscated2.go
  49. 1
    1
      wrappers/stream/rewind.go
  50. 2
    2
      wrappers/stream/stats_telegram.go
  51. 2
    2
      wrappers/stream/stats_traffic.go
  52. 1
    1
      wrappers/stream/timeout.go

+ 1
- 1
antireplay/init.go 查看文件

@@ -5,7 +5,7 @@ import (
5 5
 
6 6
 	"github.com/VictoriaMetrics/fastcache"
7 7
 
8
-	"mtg/config"
8
+	"github.com/9seconds/mtg/config"
9 9
 )
10 10
 
11 11
 var (

+ 1
- 1
cli/generate.go 查看文件

@@ -4,7 +4,7 @@ import (
4 4
 	"crypto/rand"
5 5
 	"encoding/hex"
6 6
 
7
-	"mtg/config"
7
+	"github.com/9seconds/mtg/config"
8 8
 )
9 9
 
10 10
 func Generate(secretType, hostname string) {

+ 10
- 10
cli/proxy.go 查看文件

@@ -8,16 +8,16 @@ import (
8 8
 	"go.uber.org/zap"
9 9
 	"go.uber.org/zap/zapcore"
10 10
 
11
-	"mtg/antireplay"
12
-	"mtg/config"
13
-	"mtg/faketls"
14
-	"mtg/hub"
15
-	"mtg/ntp"
16
-	"mtg/obfuscated2"
17
-	"mtg/proxy"
18
-	"mtg/stats"
19
-	"mtg/telegram"
20
-	"mtg/utils"
11
+	"github.com/9seconds/mtg/antireplay"
12
+	"github.com/9seconds/mtg/config"
13
+	"github.com/9seconds/mtg/faketls"
14
+	"github.com/9seconds/mtg/hub"
15
+	"github.com/9seconds/mtg/ntp"
16
+	"github.com/9seconds/mtg/obfuscated2"
17
+	"github.com/9seconds/mtg/proxy"
18
+	"github.com/9seconds/mtg/stats"
19
+	"github.com/9seconds/mtg/telegram"
20
+	"github.com/9seconds/mtg/utils"
21 21
 )
22 22
 
23 23
 func Proxy() error { // nolint: funlen

+ 8
- 8
faketls/client_protocol.go 查看文件

@@ -11,14 +11,14 @@ import (
11 11
 	"sync"
12 12
 	"time"
13 13
 
14
-	"mtg/antireplay"
15
-	"mtg/config"
16
-	"mtg/conntypes"
17
-	"mtg/obfuscated2"
18
-	"mtg/protocol"
19
-	"mtg/stats"
20
-	"mtg/tlstypes"
21
-	"mtg/wrappers/stream"
14
+	"github.com/9seconds/mtg/antireplay"
15
+	"github.com/9seconds/mtg/config"
16
+	"github.com/9seconds/mtg/conntypes"
17
+	"github.com/9seconds/mtg/obfuscated2"
18
+	"github.com/9seconds/mtg/protocol"
19
+	"github.com/9seconds/mtg/stats"
20
+	"github.com/9seconds/mtg/tlstypes"
21
+	"github.com/9seconds/mtg/wrappers/stream"
22 22
 )
23 23
 
24 24
 type ClientProtocol struct {

+ 1
- 1
go.mod 查看文件

@@ -1,4 +1,4 @@
1
-module mtg
1
+module github.com/9seconds/mtg
2 2
 
3 3
 go 1.13
4 4
 

+ 4
- 4
hub/connection.go 查看文件

@@ -7,10 +7,10 @@ import (
7 7
 
8 8
 	"go.uber.org/zap"
9 9
 
10
-	"mtg/conntypes"
11
-	"mtg/mtproto"
12
-	"mtg/mtproto/rpc"
13
-	"mtg/protocol"
10
+	"github.com/9seconds/mtg/conntypes"
11
+	"github.com/9seconds/mtg/mtproto"
12
+	"github.com/9seconds/mtg/mtproto/rpc"
13
+	"github.com/9seconds/mtg/protocol"
14 14
 )
15 15
 
16 16
 type connection struct {

+ 1
- 1
hub/connection_list.go 查看文件

@@ -4,7 +4,7 @@ import (
4 4
 	"fmt"
5 5
 	"sort"
6 6
 
7
-	"mtg/config"
7
+	"github.com/9seconds/mtg/config"
8 8
 )
9 9
 
10 10
 type connectionList struct {

+ 1
- 1
hub/hub.go 查看文件

@@ -4,7 +4,7 @@ import (
4 4
 	"context"
5 5
 	"sync"
6 6
 
7
-	"mtg/protocol"
7
+	"github.com/9seconds/mtg/protocol"
8 8
 )
9 9
 
10 10
 type hub struct {

+ 1
- 1
hub/interface.go 查看文件

@@ -1,6 +1,6 @@
1 1
 package hub
2 2
 
3
-import "mtg/protocol"
3
+import "github.com/9seconds/mtg/protocol"
4 4
 
5 5
 type Interface interface {
6 6
 	Register(*protocol.TelegramRequest) (*ProxyConn, error)

+ 2
- 2
hub/mux.go 查看文件

@@ -3,8 +3,8 @@ package hub
3 3
 import (
4 4
 	"context"
5 5
 
6
-	"mtg/conntypes"
7
-	"mtg/protocol"
6
+	"github.com/9seconds/mtg/conntypes"
7
+	"github.com/9seconds/mtg/protocol"
8 8
 )
9 9
 
10 10
 type muxNewRequest struct {

+ 3
- 3
hub/proxy_conn.go 查看文件

@@ -4,9 +4,9 @@ import (
4 4
 	"sync"
5 5
 	"time"
6 6
 
7
-	"mtg/conntypes"
8
-	"mtg/mtproto/rpc"
9
-	"mtg/protocol"
7
+	"github.com/9seconds/mtg/conntypes"
8
+	"github.com/9seconds/mtg/mtproto/rpc"
9
+	"github.com/9seconds/mtg/protocol"
10 10
 )
11 11
 
12 12
 const (

+ 5
- 5
main.go 查看文件

@@ -7,15 +7,15 @@ import (
7 7
 
8 8
 	kingpin "gopkg.in/alecthomas/kingpin.v2"
9 9
 
10
-	"mtg/cli"
11
-	"mtg/config"
12
-	"mtg/utils"
10
+	"github.com/9seconds/mtg/cli"
11
+	"github.com/9seconds/mtg/config"
12
+	"github.com/9seconds/mtg/utils"
13 13
 )
14 14
 
15 15
 var version = "dev" // this has to be set by build ld flags
16 16
 
17 17
 var (
18
-	app = kingpin.New("mtg", "Simple MTPROTO proxy.")
18
+	app = kingpin.New("MTG", "Simple MTPROTO proxy.")
19 19
 
20 20
 	generateSecretCommand = app.Command("generate-secret",
21 21
 		"Generate new secret")
@@ -66,7 +66,7 @@ var (
66 66
 	runStatsNamespace = runCommand.Flag("stats-namespace",
67 67
 		"Which namespace to use for Prometheus.").
68 68
 		Envar("MTG_STATS_NAMESPACE").
69
-		Default("mtg").
69
+		Default("MTG").
70 70
 		String()
71 71
 	runStatsdAddress = runCommand.Flag("statsd-addr",
72 72
 		"Host:port of statsd server").

+ 6
- 6
mtproto/protocol.go 查看文件

@@ -3,12 +3,12 @@ package mtproto
3 3
 import (
4 4
 	"fmt"
5 5
 
6
-	"mtg/conntypes"
7
-	"mtg/mtproto/rpc"
8
-	"mtg/protocol"
9
-	"mtg/telegram"
10
-	"mtg/wrappers/packet"
11
-	"mtg/wrappers/stream"
6
+	"github.com/9seconds/mtg/conntypes"
7
+	"github.com/9seconds/mtg/mtproto/rpc"
8
+	"github.com/9seconds/mtg/protocol"
9
+	"github.com/9seconds/mtg/telegram"
10
+	"github.com/9seconds/mtg/wrappers/packet"
11
+	"github.com/9seconds/mtg/wrappers/stream"
12 12
 )
13 13
 
14 14
 func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.PacketReadWriteCloser, error) {

+ 1
- 1
mtproto/rpc/proxy_response.go 查看文件

@@ -4,7 +4,7 @@ import (
4 4
 	"bytes"
5 5
 	"fmt"
6 6
 
7
-	"mtg/conntypes"
7
+	"github.com/9seconds/mtg/conntypes"
8 8
 )
9 9
 
10 10
 type ProxyResponseType uint8

+ 7
- 7
obfuscated2/client_protocol.go 查看文件

@@ -9,13 +9,13 @@ import (
9 9
 	"io"
10 10
 	"time"
11 11
 
12
-	"mtg/antireplay"
13
-	"mtg/config"
14
-	"mtg/conntypes"
15
-	"mtg/protocol"
16
-	"mtg/stats"
17
-	"mtg/utils"
18
-	"mtg/wrappers/stream"
12
+	"github.com/9seconds/mtg/antireplay"
13
+	"github.com/9seconds/mtg/config"
14
+	"github.com/9seconds/mtg/conntypes"
15
+	"github.com/9seconds/mtg/protocol"
16
+	"github.com/9seconds/mtg/stats"
17
+	"github.com/9seconds/mtg/utils"
18
+	"github.com/9seconds/mtg/wrappers/stream"
19 19
 )
20 20
 
21 21
 const clientProtocolHandshakeTimeout = 10 * time.Second

+ 5
- 5
obfuscated2/telegram_protocol.go 查看文件

@@ -4,11 +4,11 @@ import (
4 4
 	"crypto/rand"
5 5
 	"fmt"
6 6
 
7
-	"mtg/conntypes"
8
-	"mtg/protocol"
9
-	"mtg/telegram"
10
-	"mtg/utils"
11
-	"mtg/wrappers/stream"
7
+	"github.com/9seconds/mtg/conntypes"
8
+	"github.com/9seconds/mtg/protocol"
9
+	"github.com/9seconds/mtg/telegram"
10
+	"github.com/9seconds/mtg/utils"
11
+	"github.com/9seconds/mtg/wrappers/stream"
12 12
 )
13 13
 
14 14
 func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.StreamReadWriteCloser, error) {

+ 1
- 1
protocol/interfaces.go 查看文件

@@ -1,6 +1,6 @@
1 1
 package protocol
2 2
 
3
-import "mtg/conntypes"
3
+import "github.com/9seconds/mtg/conntypes"
4 4
 
5 5
 type ClientProtocol interface {
6 6
 	Handshake(conntypes.StreamReadWriteCloser) (conntypes.StreamReadWriteCloser, error)

+ 1
- 1
protocol/request.go 查看文件

@@ -5,7 +5,7 @@ import (
5 5
 
6 6
 	"go.uber.org/zap"
7 7
 
8
-	"mtg/conntypes"
8
+	"github.com/9seconds/mtg/conntypes"
9 9
 )
10 10
 
11 11
 type TelegramRequest struct {

+ 3
- 3
proxy/direct.go 查看文件

@@ -6,9 +6,9 @@ import (
6 6
 
7 7
 	"go.uber.org/zap"
8 8
 
9
-	"mtg/conntypes"
10
-	"mtg/obfuscated2"
11
-	"mtg/protocol"
9
+	"github.com/9seconds/mtg/conntypes"
10
+	"github.com/9seconds/mtg/obfuscated2"
11
+	"github.com/9seconds/mtg/protocol"
12 12
 )
13 13
 
14 14
 const directPipeBufferSize = 1024 * 1024

+ 3
- 3
proxy/middle.go 查看文件

@@ -5,9 +5,9 @@ import (
5 5
 
6 6
 	"go.uber.org/zap"
7 7
 
8
-	"mtg/conntypes"
9
-	"mtg/protocol"
10
-	"mtg/wrappers/packetack"
8
+	"github.com/9seconds/mtg/conntypes"
9
+	"github.com/9seconds/mtg/protocol"
10
+	"github.com/9seconds/mtg/wrappers/packetack"
11 11
 )
12 12
 
13 13
 func middleConnection(request *protocol.TelegramRequest) {

+ 6
- 6
proxy/proxy.go 查看文件

@@ -6,12 +6,12 @@ import (
6 6
 
7 7
 	"go.uber.org/zap"
8 8
 
9
-	"mtg/config"
10
-	"mtg/conntypes"
11
-	"mtg/protocol"
12
-	"mtg/stats"
13
-	"mtg/utils"
14
-	"mtg/wrappers/stream"
9
+	"github.com/9seconds/mtg/config"
10
+	"github.com/9seconds/mtg/conntypes"
11
+	"github.com/9seconds/mtg/protocol"
12
+	"github.com/9seconds/mtg/stats"
13
+	"github.com/9seconds/mtg/utils"
14
+	"github.com/9seconds/mtg/wrappers/stream"
15 15
 )
16 16
 
17 17
 type Proxy struct {

+ 1
- 1
stats/interfaces.go 查看文件

@@ -3,7 +3,7 @@ package stats
3 3
 import (
4 4
 	"net"
5 5
 
6
-	"mtg/conntypes"
6
+	"github.com/9seconds/mtg/conntypes"
7 7
 )
8 8
 
9 9
 type IngressTrafficInterface interface {

+ 1
- 1
stats/multi_stats.go 查看文件

@@ -3,7 +3,7 @@ package stats
3 3
 import (
4 4
 	"net"
5 5
 
6
-	"mtg/conntypes"
6
+	"github.com/9seconds/mtg/conntypes"
7 7
 )
8 8
 
9 9
 type multiStats []Interface

+ 1
- 1
stats/stats.go 查看文件

@@ -6,7 +6,7 @@ import (
6 6
 	"net"
7 7
 	"net/http"
8 8
 
9
-	"mtg/config"
9
+	"github.com/9seconds/mtg/config"
10 10
 )
11 11
 
12 12
 var Stats Interface

+ 2
- 2
stats/stats_prometheus.go 查看文件

@@ -8,8 +8,8 @@ import (
8 8
 	"github.com/prometheus/client_golang/prometheus"
9 9
 	"github.com/prometheus/client_golang/prometheus/promhttp"
10 10
 
11
-	"mtg/config"
12
-	"mtg/conntypes"
11
+	"github.com/9seconds/mtg/config"
12
+	"github.com/9seconds/mtg/conntypes"
13 13
 )
14 14
 
15 15
 type statsPrometheus struct {

+ 2
- 2
stats/stats_statsd.go 查看文件

@@ -11,8 +11,8 @@ import (
11 11
 	statsd "github.com/smira/go-statsd"
12 12
 	"go.uber.org/zap"
13 13
 
14
-	"mtg/config"
15
-	"mtg/conntypes"
14
+	"github.com/9seconds/mtg/config"
15
+	"github.com/9seconds/mtg/conntypes"
16 16
 )
17 17
 
18 18
 var (

+ 1
- 1
telegram/api/addresses.go 查看文件

@@ -8,7 +8,7 @@ import (
8 8
 	"strconv"
9 9
 	"strings"
10 10
 
11
-	"mtg/conntypes"
11
+	"github.com/9seconds/mtg/conntypes"
12 12
 )
13 13
 
14 14
 const (

+ 1
- 1
telegram/api/api.go 查看文件

@@ -9,7 +9,7 @@ import (
9 9
 )
10 10
 
11 11
 const (
12
-	apiUserAgent   = "mtg"
12
+	apiUserAgent   = "github.com/9seconds/mtg"
13 13
 	apiHTTPTimeout = 30 * time.Second
14 14
 )
15 15
 

+ 3
- 3
telegram/base.go 查看文件

@@ -5,9 +5,9 @@ import (
5 5
 	"math/rand"
6 6
 	"net"
7 7
 
8
-	"mtg/conntypes"
9
-	"mtg/utils"
10
-	"mtg/wrappers/stream"
8
+	"github.com/9seconds/mtg/conntypes"
9
+	"github.com/9seconds/mtg/utils"
10
+	"github.com/9seconds/mtg/wrappers/stream"
11 11
 )
12 12
 
13 13
 type baseTelegram struct {

+ 1
- 1
telegram/direct.go 查看文件

@@ -1,6 +1,6 @@
1 1
 package telegram
2 2
 
3
-import "mtg/conntypes"
3
+import "github.com/9seconds/mtg/conntypes"
4 4
 
5 5
 const (
6 6
 	directV4DefaultIdx conntypes.DC = 1

+ 1
- 1
telegram/interfaces.go 查看文件

@@ -1,6 +1,6 @@
1 1
 package telegram
2 2
 
3
-import "mtg/conntypes"
3
+import "github.com/9seconds/mtg/conntypes"
4 4
 
5 5
 type Telegram interface {
6 6
 	Dial(conntypes.DC, conntypes.ConnectionProtocol) (conntypes.StreamReadWriteCloser, error)

+ 2
- 2
telegram/middle.go 查看文件

@@ -7,8 +7,8 @@ import (
7 7
 
8 8
 	"go.uber.org/zap"
9 9
 
10
-	"mtg/conntypes"
11
-	"mtg/telegram/api"
10
+	"github.com/9seconds/mtg/conntypes"
11
+	"github.com/9seconds/mtg/telegram/api"
12 12
 )
13 13
 
14 14
 const middleTelegramBackgroundUpdateEvery = time.Hour

+ 2
- 2
tlstypes/client_hello.go 查看文件

@@ -6,8 +6,8 @@ import (
6 6
 	"crypto/sha256"
7 7
 	"fmt"
8 8
 
9
-	"mtg/config"
10
-	"mtg/utils"
9
+	"github.com/9seconds/mtg/config"
10
+	"github.com/9seconds/mtg/utils"
11 11
 )
12 12
 
13 13
 type ClientHello struct {

+ 1
- 1
tlstypes/handshake.go 查看文件

@@ -3,7 +3,7 @@ package tlstypes
3 3
 import (
4 4
 	"bytes"
5 5
 
6
-	"mtg/utils"
6
+	"github.com/9seconds/mtg/utils"
7 7
 )
8 8
 
9 9
 type Handshake struct {

+ 1
- 1
tlstypes/server_hello.go 查看文件

@@ -10,7 +10,7 @@ import (
10 10
 
11 11
 	"golang.org/x/crypto/curve25519"
12 12
 
13
-	"mtg/config"
13
+	"github.com/9seconds/mtg/config"
14 14
 )
15 15
 
16 16
 type ServerHello struct {

+ 1
- 1
utils/init_tcp.go 查看文件

@@ -4,7 +4,7 @@ import (
4 4
 	"fmt"
5 5
 	"net"
6 6
 
7
-	"mtg/config"
7
+	"github.com/9seconds/mtg/config"
8 8
 )
9 9
 
10 10
 func InitTCP(conn net.Conn) error {

+ 1
- 1
wrappers/packet/mtproto_frame.go 查看文件

@@ -12,7 +12,7 @@ import (
12 12
 
13 13
 	"go.uber.org/zap"
14 14
 
15
-	"mtg/conntypes"
15
+	"github.com/9seconds/mtg/conntypes"
16 16
 )
17 17
 
18 18
 const (

+ 2
- 2
wrappers/packetack/client_abridged.go 查看文件

@@ -8,8 +8,8 @@ import (
8 8
 
9 9
 	"go.uber.org/zap"
10 10
 
11
-	"mtg/conntypes"
12
-	"mtg/utils"
11
+	"github.com/9seconds/mtg/conntypes"
12
+	"github.com/9seconds/mtg/utils"
13 13
 )
14 14
 
15 15
 const (

+ 1
- 1
wrappers/packetack/client_intermediate.go 查看文件

@@ -9,7 +9,7 @@ import (
9 9
 
10 10
 	"go.uber.org/zap"
11 11
 
12
-	"mtg/conntypes"
12
+	"github.com/9seconds/mtg/conntypes"
13 13
 )
14 14
 
15 15
 const clientIntermediateQuickAckLength = 0x80000000

+ 1
- 1
wrappers/packetack/client_intermediate_secure.go 查看文件

@@ -8,7 +8,7 @@ import (
8 8
 
9 9
 	"go.uber.org/zap"
10 10
 
11
-	"mtg/conntypes"
11
+	"github.com/9seconds/mtg/conntypes"
12 12
 )
13 13
 
14 14
 type wrapperClientIntermediateSecure struct {

+ 5
- 5
wrappers/packetack/proxy.go 查看文件

@@ -6,11 +6,11 @@ import (
6 6
 	"fmt"
7 7
 	"net"
8 8
 
9
-	"mtg/config"
10
-	"mtg/conntypes"
11
-	"mtg/hub"
12
-	"mtg/mtproto/rpc"
13
-	"mtg/protocol"
9
+	"github.com/9seconds/mtg/config"
10
+	"github.com/9seconds/mtg/conntypes"
11
+	"github.com/9seconds/mtg/hub"
12
+	"github.com/9seconds/mtg/mtproto/rpc"
13
+	"github.com/9seconds/mtg/protocol"
14 14
 )
15 15
 
16 16
 type wrapperProxy struct {

+ 1
- 1
wrappers/stream/base.go 查看文件

@@ -3,7 +3,7 @@ package stream
3 3
 import (
4 4
 	"net"
5 5
 
6
-	"mtg/conntypes"
6
+	"github.com/9seconds/mtg/conntypes"
7 7
 )
8 8
 
9 9
 func NewClientConn(parent net.Conn, connID conntypes.ConnID) conntypes.StreamReadWriteCloser {

+ 2
- 2
wrappers/stream/blockcipher.go 查看文件

@@ -9,8 +9,8 @@ import (
9 9
 
10 10
 	"go.uber.org/zap"
11 11
 
12
-	"mtg/conntypes"
13
-	"mtg/utils"
12
+	"github.com/9seconds/mtg/conntypes"
13
+	"github.com/9seconds/mtg/utils"
14 14
 )
15 15
 
16 16
 type wrapperBlockCipher struct {

+ 2
- 2
wrappers/stream/conn.go 查看文件

@@ -7,8 +7,8 @@ import (
7 7
 
8 8
 	"go.uber.org/zap"
9 9
 
10
-	"mtg/config"
11
-	"mtg/conntypes"
10
+	"github.com/9seconds/mtg/config"
11
+	"github.com/9seconds/mtg/conntypes"
12 12
 )
13 13
 
14 14
 type connPurpose uint8

+ 1
- 1
wrappers/stream/ctx.go 查看文件

@@ -8,7 +8,7 @@ import (
8 8
 
9 9
 	"go.uber.org/zap"
10 10
 
11
-	"mtg/conntypes"
11
+	"github.com/9seconds/mtg/conntypes"
12 12
 )
13 13
 
14 14
 type wrapperCtx struct {

+ 2
- 2
wrappers/stream/faketls.go 查看文件

@@ -8,8 +8,8 @@ import (
8 8
 
9 9
 	"go.uber.org/zap"
10 10
 
11
-	"mtg/conntypes"
12
-	"mtg/tlstypes"
11
+	"github.com/9seconds/mtg/conntypes"
12
+	"github.com/9seconds/mtg/tlstypes"
13 13
 )
14 14
 
15 15
 type wrapperFakeTLS struct {

+ 3
- 3
wrappers/stream/mtproto_cipher.go 查看文件

@@ -9,9 +9,9 @@ import (
9 9
 	"encoding/binary"
10 10
 	"net"
11 11
 
12
-	"mtg/conntypes"
13
-	"mtg/mtproto/rpc"
14
-	"mtg/utils"
12
+	"github.com/9seconds/mtg/conntypes"
13
+	"github.com/9seconds/mtg/mtproto/rpc"
14
+	"github.com/9seconds/mtg/utils"
15 15
 )
16 16
 
17 17
 type mtprotoCipherPurpose uint8

+ 1
- 1
wrappers/stream/obfuscated2.go 查看文件

@@ -8,7 +8,7 @@ import (
8 8
 
9 9
 	"go.uber.org/zap"
10 10
 
11
-	"mtg/conntypes"
11
+	"github.com/9seconds/mtg/conntypes"
12 12
 )
13 13
 
14 14
 type wrapperObfuscated2 struct {

+ 1
- 1
wrappers/stream/rewind.go 查看文件

@@ -9,7 +9,7 @@ import (
9 9
 
10 10
 	"go.uber.org/zap"
11 11
 
12
-	"mtg/conntypes"
12
+	"github.com/9seconds/mtg/conntypes"
13 13
 )
14 14
 
15 15
 type ReadWriteCloseRewinder interface {

+ 2
- 2
wrappers/stream/stats_telegram.go 查看文件

@@ -7,8 +7,8 @@ import (
7 7
 
8 8
 	"go.uber.org/zap"
9 9
 
10
-	"mtg/conntypes"
11
-	"mtg/stats"
10
+	"github.com/9seconds/mtg/conntypes"
11
+	"github.com/9seconds/mtg/stats"
12 12
 )
13 13
 
14 14
 type wrapperTelegramStats struct {

+ 2
- 2
wrappers/stream/stats_traffic.go 查看文件

@@ -6,8 +6,8 @@ import (
6 6
 
7 7
 	"go.uber.org/zap"
8 8
 
9
-	"mtg/conntypes"
10
-	"mtg/stats"
9
+	"github.com/9seconds/mtg/conntypes"
10
+	"github.com/9seconds/mtg/stats"
11 11
 )
12 12
 
13 13
 type wrapperTrafficStats struct {

+ 1
- 1
wrappers/stream/timeout.go 查看文件

@@ -6,7 +6,7 @@ import (
6 6
 
7 7
 	"go.uber.org/zap"
8 8
 
9
-	"mtg/conntypes"
9
+	"github.com/9seconds/mtg/conntypes"
10 10
 )
11 11
 
12 12
 const (

正在加载...
取消
保存