ソースを参照

Rename full path in order to favor modules

tags/1.0^2
9seconds 6年前
コミット
273aa18367
53個のファイルの変更120行の追加122行の削除
  1. 1
    1
      antireplay/init.go
  2. 1
    1
      cli/generate.go
  3. 10
    10
      cli/proxy.go
  4. 1
    1
      faketls/certificate_server.go
  5. 8
    8
      faketls/client_protocol.go
  6. 1
    1
      faketls/init.go
  7. 2
    4
      go.mod
  8. 4
    4
      hub/connection.go
  9. 1
    1
      hub/connection_list.go
  10. 1
    1
      hub/hub.go
  11. 1
    1
      hub/interface.go
  12. 2
    2
      hub/mux.go
  13. 3
    3
      hub/proxy_conn.go
  14. 3
    3
      main.go
  15. 6
    6
      mtproto/protocol.go
  16. 1
    1
      mtproto/rpc/proxy_response.go
  17. 7
    7
      obfuscated2/client_protocol.go
  18. 5
    5
      obfuscated2/telegram_protocol.go
  19. 1
    1
      protocol/interfaces.go
  20. 1
    1
      protocol/request.go
  21. 3
    3
      proxy/direct.go
  22. 3
    3
      proxy/middle.go
  23. 6
    6
      proxy/proxy.go
  24. 1
    1
      stats/interfaces.go
  25. 1
    1
      stats/multi_stats.go
  26. 1
    1
      stats/stats.go
  27. 2
    2
      stats/stats_prometheus.go
  28. 2
    2
      stats/stats_statsd.go
  29. 1
    1
      telegram/api/addresses.go
  30. 3
    3
      telegram/base.go
  31. 1
    1
      telegram/direct.go
  32. 1
    1
      telegram/interfaces.go
  33. 2
    2
      telegram/middle.go
  34. 2
    2
      tlstypes/client_hello.go
  35. 1
    1
      tlstypes/handshake.go
  36. 1
    1
      tlstypes/server_hello.go
  37. 1
    1
      utils/init_tcp.go
  38. 1
    1
      wrappers/packet/mtproto_frame.go
  39. 2
    2
      wrappers/packetack/client_abridged.go
  40. 1
    1
      wrappers/packetack/client_intermediate.go
  41. 1
    1
      wrappers/packetack/client_intermediate_secure.go
  42. 5
    5
      wrappers/packetack/proxy.go
  43. 1
    1
      wrappers/stream/base.go
  44. 2
    2
      wrappers/stream/blockcipher.go
  45. 2
    2
      wrappers/stream/conn.go
  46. 1
    1
      wrappers/stream/ctx.go
  47. 2
    2
      wrappers/stream/faketls.go
  48. 3
    3
      wrappers/stream/mtproto_cipher.go
  49. 1
    1
      wrappers/stream/obfuscated2.go
  50. 1
    1
      wrappers/stream/rewind.go
  51. 2
    2
      wrappers/stream/stats_telegram.go
  52. 2
    2
      wrappers/stream/stats_traffic.go
  53. 1
    1
      wrappers/stream/timeout.go

+ 1
- 1
antireplay/init.go ファイルの表示

4
 	"math"
4
 	"math"
5
 	"sync"
5
 	"sync"
6
 
6
 
7
-	"github.com/9seconds/mtg/config"
7
+	"mtg/config"
8
 	"github.com/dgraph-io/ristretto"
8
 	"github.com/dgraph-io/ristretto"
9
 )
9
 )
10
 
10
 

+ 1
- 1
cli/generate.go ファイルの表示

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

+ 10
- 10
cli/proxy.go ファイルの表示

8
 	"go.uber.org/zap"
8
 	"go.uber.org/zap"
9
 	"go.uber.org/zap/zapcore"
9
 	"go.uber.org/zap/zapcore"
10
 
10
 
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"
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"
21
 )
21
 )
22
 
22
 
23
 func Proxy() error { // nolint: funlen
23
 func Proxy() error { // nolint: funlen

+ 1
- 1
faketls/certificate_server.go ファイルの表示

13
 
13
 
14
 	"go.uber.org/zap"
14
 	"go.uber.org/zap"
15
 
15
 
16
-	"github.com/9seconds/mtg/config"
16
+	"mtg/config"
17
 )
17
 )
18
 
18
 
19
 type connectionServer struct {
19
 type connectionServer struct {

+ 8
- 8
faketls/client_protocol.go ファイルの表示

11
 	"sync"
11
 	"sync"
12
 	"time"
12
 	"time"
13
 
13
 
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"
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"
22
 )
22
 )
23
 
23
 
24
 type ClientProtocol struct {
24
 type ClientProtocol struct {

+ 1
- 1
faketls/init.go ファイルの表示

6
 	"sync"
6
 	"sync"
7
 	"time"
7
 	"time"
8
 
8
 
9
-	"github.com/9seconds/mtg/config"
9
+	"mtg/config"
10
 )
10
 )
11
 
11
 
12
 var (
12
 var (

+ 2
- 4
go.mod ファイルの表示

1
-module github.com/9seconds/mtg
1
+module mtg
2
 
2
 
3
-replace github.com/golang/lint => github.com/golang/lint v0.0.0-20190227174305-8f45f776aaf1
3
+go 1.13
4
 
4
 
5
 require (
5
 require (
6
 	github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
6
 	github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
16
 	gopkg.in/alecthomas/kingpin.v2 v2.2.6
16
 	gopkg.in/alecthomas/kingpin.v2 v2.2.6
17
 	gopkg.in/alexcesaro/statsd.v2 v2.0.0
17
 	gopkg.in/alexcesaro/statsd.v2 v2.0.0
18
 )
18
 )
19
-
20
-go 1.13

+ 4
- 4
hub/connection.go ファイルの表示

7
 
7
 
8
 	"go.uber.org/zap"
8
 	"go.uber.org/zap"
9
 
9
 
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"
10
+	"mtg/conntypes"
11
+	"mtg/mtproto"
12
+	"mtg/mtproto/rpc"
13
+	"mtg/protocol"
14
 )
14
 )
15
 
15
 
16
 type connection struct {
16
 type connection struct {

+ 1
- 1
hub/connection_list.go ファイルの表示

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

+ 1
- 1
hub/hub.go ファイルの表示

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

+ 1
- 1
hub/interface.go ファイルの表示

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

+ 2
- 2
hub/mux.go ファイルの表示

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

+ 3
- 3
hub/proxy_conn.go ファイルの表示

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

+ 3
- 3
main.go ファイルの表示

7
 
7
 
8
 	kingpin "gopkg.in/alecthomas/kingpin.v2"
8
 	kingpin "gopkg.in/alecthomas/kingpin.v2"
9
 
9
 
10
-	"github.com/9seconds/mtg/cli"
11
-	"github.com/9seconds/mtg/config"
12
-	"github.com/9seconds/mtg/utils"
10
+	"mtg/cli"
11
+	"mtg/config"
12
+	"mtg/utils"
13
 )
13
 )
14
 
14
 
15
 var version = "dev" // this has to be set by build ld flags
15
 var version = "dev" // this has to be set by build ld flags

+ 6
- 6
mtproto/protocol.go ファイルの表示

3
 import (
3
 import (
4
 	"fmt"
4
 	"fmt"
5
 
5
 
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"
6
+	"mtg/conntypes"
7
+	"mtg/mtproto/rpc"
8
+	"mtg/protocol"
9
+	"mtg/telegram"
10
+	"mtg/wrappers/packet"
11
+	"mtg/wrappers/stream"
12
 )
12
 )
13
 
13
 
14
 func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.PacketReadWriteCloser, error) {
14
 func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.PacketReadWriteCloser, error) {

+ 1
- 1
mtproto/rpc/proxy_response.go ファイルの表示

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

+ 7
- 7
obfuscated2/client_protocol.go ファイルの表示

9
 	"io"
9
 	"io"
10
 	"time"
10
 	"time"
11
 
11
 
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"
12
+	"mtg/antireplay"
13
+	"mtg/config"
14
+	"mtg/conntypes"
15
+	"mtg/protocol"
16
+	"mtg/stats"
17
+	"mtg/utils"
18
+	"mtg/wrappers/stream"
19
 )
19
 )
20
 
20
 
21
 const clientProtocolHandshakeTimeout = 10 * time.Second
21
 const clientProtocolHandshakeTimeout = 10 * time.Second

+ 5
- 5
obfuscated2/telegram_protocol.go ファイルの表示

4
 	"crypto/rand"
4
 	"crypto/rand"
5
 	"fmt"
5
 	"fmt"
6
 
6
 
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"
7
+	"mtg/conntypes"
8
+	"mtg/protocol"
9
+	"mtg/telegram"
10
+	"mtg/utils"
11
+	"mtg/wrappers/stream"
12
 )
12
 )
13
 
13
 
14
 func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.StreamReadWriteCloser, error) {
14
 func TelegramProtocol(req *protocol.TelegramRequest) (conntypes.StreamReadWriteCloser, error) {

+ 1
- 1
protocol/interfaces.go ファイルの表示

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

+ 1
- 1
protocol/request.go ファイルの表示

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

+ 3
- 3
proxy/direct.go ファイルの表示

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

+ 3
- 3
proxy/middle.go ファイルの表示

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

+ 6
- 6
proxy/proxy.go ファイルの表示

6
 
6
 
7
 	"go.uber.org/zap"
7
 	"go.uber.org/zap"
8
 
8
 
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"
9
+	"mtg/config"
10
+	"mtg/conntypes"
11
+	"mtg/protocol"
12
+	"mtg/stats"
13
+	"mtg/utils"
14
+	"mtg/wrappers/stream"
15
 )
15
 )
16
 
16
 
17
 type Proxy struct {
17
 type Proxy struct {

+ 1
- 1
stats/interfaces.go ファイルの表示

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

+ 1
- 1
stats/multi_stats.go ファイルの表示

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

+ 1
- 1
stats/stats.go ファイルの表示

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

+ 2
- 2
stats/stats_prometheus.go ファイルの表示

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

+ 2
- 2
stats/stats_statsd.go ファイルの表示

8
 
8
 
9
 	"gopkg.in/alexcesaro/statsd.v2"
9
 	"gopkg.in/alexcesaro/statsd.v2"
10
 
10
 
11
-	"github.com/9seconds/mtg/config"
12
-	"github.com/9seconds/mtg/conntypes"
11
+	"mtg/config"
12
+	"mtg/conntypes"
13
 )
13
 )
14
 
14
 
15
 type statsStatsd struct {
15
 type statsStatsd struct {

+ 1
- 1
telegram/api/addresses.go ファイルの表示

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

+ 3
- 3
telegram/base.go ファイルの表示

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

+ 1
- 1
telegram/direct.go ファイルの表示

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

+ 1
- 1
telegram/interfaces.go ファイルの表示

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

+ 2
- 2
telegram/middle.go ファイルの表示

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

+ 2
- 2
tlstypes/client_hello.go ファイルの表示

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

+ 1
- 1
tlstypes/handshake.go ファイルの表示

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

+ 1
- 1
tlstypes/server_hello.go ファイルの表示

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

+ 1
- 1
utils/init_tcp.go ファイルの表示

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

+ 1
- 1
wrappers/packet/mtproto_frame.go ファイルの表示

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

+ 2
- 2
wrappers/packetack/client_abridged.go ファイルの表示

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

+ 1
- 1
wrappers/packetack/client_intermediate.go ファイルの表示

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

+ 1
- 1
wrappers/packetack/client_intermediate_secure.go ファイルの表示

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

+ 5
- 5
wrappers/packetack/proxy.go ファイルの表示

6
 	"fmt"
6
 	"fmt"
7
 	"net"
7
 	"net"
8
 
8
 
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"
9
+	"mtg/config"
10
+	"mtg/conntypes"
11
+	"mtg/hub"
12
+	"mtg/mtproto/rpc"
13
+	"mtg/protocol"
14
 )
14
 )
15
 
15
 
16
 type wrapperProxy struct {
16
 type wrapperProxy struct {

+ 1
- 1
wrappers/stream/base.go ファイルの表示

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

+ 2
- 2
wrappers/stream/blockcipher.go ファイルの表示

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

+ 2
- 2
wrappers/stream/conn.go ファイルの表示

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

+ 1
- 1
wrappers/stream/ctx.go ファイルの表示

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

+ 2
- 2
wrappers/stream/faketls.go ファイルの表示

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

+ 3
- 3
wrappers/stream/mtproto_cipher.go ファイルの表示

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

+ 1
- 1
wrappers/stream/obfuscated2.go ファイルの表示

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

+ 1
- 1
wrappers/stream/rewind.go ファイルの表示

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

+ 2
- 2
wrappers/stream/stats_telegram.go ファイルの表示

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

+ 2
- 2
wrappers/stream/stats_traffic.go ファイルの表示

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

+ 1
- 1
wrappers/stream/timeout.go ファイルの表示

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

読み込み中…
キャンセル
保存