Просмотр исходного кода

fix: change module path to github.com/dolonet/mtg-multi

go install github.com/dolonet/mtg-multi@latest was broken because go.mod
declared module path as github.com/9seconds/mtg/v2 while the repo lives
at github.com/dolonet/mtg-multi. Users ended up installing upstream
binary without multi-secret support.

Fixes https://github.com/9seconds/mtg/issues/376#issuecomment-4162877568
pull/434/head
Alexey Dolotov 1 месяц назад
Родитель
Сommit
b230a2e768
100 измененных файлов: 156 добавлений и 156 удалений
  1. 1
    1
      .codecov.yml
  2. 1
    1
      antireplay/noop.go
  3. 1
    1
      antireplay/noop_test.go
  4. 1
    1
      antireplay/stable_bloom_filter.go
  5. 1
    1
      antireplay/stable_bloom_filter_test.go
  6. 1
    1
      events/event_stream.go
  7. 2
    2
      events/event_stream_test.go
  8. 1
    1
      events/init.go
  9. 1
    1
      events/init_test.go
  10. 1
    1
      events/multi_observer.go
  11. 1
    1
      events/noop.go
  12. 2
    2
      events/noop_test.go
  13. 1
    1
      go.mod
  14. 3
    3
      internal/cli/access.go
  15. 5
    5
      internal/cli/doctor.go
  16. 1
    1
      internal/cli/generate_secret.go
  17. 1
    1
      internal/cli/run.go
  18. 11
    11
      internal/cli/run_proxy.go
  19. 1
    1
      internal/cli/simple_run.go
  20. 2
    2
      internal/cli/utils.go
  21. 1
    1
      internal/config/config.go
  22. 1
    1
      internal/config/config_test.go
  23. 1
    1
      internal/config/type_blocklist_uri_test.go
  24. 1
    1
      internal/config/type_bool_test.go
  25. 1
    1
      internal/config/type_bytes_test.go
  26. 1
    1
      internal/config/type_concurrency_test.go
  27. 1
    1
      internal/config/type_dc_test.go
  28. 1
    1
      internal/config/type_dns_uri_test.go
  29. 1
    1
      internal/config/type_duration_test.go
  30. 1
    1
      internal/config/type_error_rate_test.go
  31. 1
    1
      internal/config/type_hostport_test.go
  32. 1
    1
      internal/config/type_http_path_test.go
  33. 1
    1
      internal/config/type_https_url_test.go
  34. 1
    1
      internal/config/type_ip_test.go
  35. 1
    1
      internal/config/type_metric_prefix_test.go
  36. 1
    1
      internal/config/type_port_test.go
  37. 1
    1
      internal/config/type_prefer_ip_test.go
  38. 1
    1
      internal/config/type_proxy_url_test.go
  39. 1
    1
      internal/config/type_statsd_tag_format_test.go
  40. 1
    1
      internal/testlib/mtglib_network_mock.go
  41. 1
    1
      internal/utils/make_qr_code_url_test.go
  42. 1
    1
      internal/utils/net_listener.go
  43. 1
    1
      internal/utils/read_config.go
  44. 1
    1
      internal/utils/read_config_test.go
  45. 1
    1
      ipblocklist/files/http_test.go
  46. 1
    1
      ipblocklist/files/local_test.go
  47. 1
    1
      ipblocklist/files/mem_test.go
  48. 2
    2
      ipblocklist/firehol.go
  49. 4
    4
      ipblocklist/firehol_test.go
  50. 1
    1
      ipblocklist/noop.go
  51. 1
    1
      ipblocklist/noop_test.go
  52. 1
    1
      logger/noop.go
  53. 2
    2
      logger/noop_test.go
  54. 1
    1
      logger/zerolog.go
  55. 2
    2
      logger/zerolog_test.go
  56. 1
    1
      main.go
  57. 1
    1
      mtglib/conns.go
  58. 1
    1
      mtglib/conns_internal_test.go
  59. 1
    1
      mtglib/counting_conn.go
  60. 1
    1
      mtglib/events_test.go
  61. 1
    1
      mtglib/init.go
  62. 1
    1
      mtglib/internal/dc/addr.go
  63. 1
    1
      mtglib/internal/dc/init.go
  64. 2
    2
      mtglib/internal/doppel/conn.go
  65. 2
    2
      mtglib/internal/doppel/conn_test.go
  66. 1
    1
      mtglib/internal/doppel/ganger.go
  67. 1
    1
      mtglib/internal/doppel/ganger_test.go
  68. 2
    2
      mtglib/internal/doppel/init.go
  69. 1
    1
      mtglib/internal/doppel/init_test.go
  70. 2
    2
      mtglib/internal/doppel/scout.go
  71. 2
    2
      mtglib/internal/doppel/scout_conn.go
  72. 1
    1
      mtglib/internal/doppel/scout_conn_collected_test.go
  73. 1
    1
      mtglib/internal/obfuscation/conn.go
  74. 2
    2
      mtglib/internal/obfuscation/conn_test.go
  75. 1
    1
      mtglib/internal/obfuscation/obfuscator.go
  76. 3
    3
      mtglib/internal/obfuscation/obfuscator_fuzz_test.go
  77. 3
    3
      mtglib/internal/obfuscation/obfuscator_test.go
  78. 1
    1
      mtglib/internal/relay/pool_settings_constrained.go
  79. 1
    1
      mtglib/internal/relay/pool_settings_other.go
  80. 1
    1
      mtglib/internal/relay/relay.go
  81. 2
    2
      mtglib/internal/relay/relay_bench_test.go
  82. 2
    2
      mtglib/internal/relay/relay_test.go
  83. 1
    1
      mtglib/internal/relay/stack_bench_test.go
  84. 1
    1
      mtglib/internal/relay/stress_bench_test.go
  85. 1
    1
      mtglib/internal/tls/conn.go
  86. 1
    1
      mtglib/internal/tls/conn_test.go
  87. 1
    1
      mtglib/internal/tls/fake/client_side.go
  88. 3
    3
      mtglib/internal/tls/fake/client_side_fuzz_test.go
  89. 2
    2
      mtglib/internal/tls/fake/client_side_snapshot_test.go
  90. 4
    4
      mtglib/internal/tls/fake/client_side_test.go
  91. 1
    1
      mtglib/internal/tls/fake/server_side.go
  92. 3
    3
      mtglib/internal/tls/fake/server_side_test.go
  93. 7
    7
      mtglib/proxy.go
  94. 7
    7
      mtglib/proxy_test.go
  95. 1
    1
      mtglib/secret_test.go
  96. 1
    1
      mtglib/stream_context.go
  97. 1
    1
      mtglib/stream_context_internal_test.go
  98. 1
    1
      network/circuit_breaker.go
  99. 1
    1
      network/circuit_breaker_internal_test.go
  100. 0
    0
      network/default.go

+ 1
- 1
.codecov.yml Просмотреть файл

1
 ---
1
 ---
2
 
2
 
3
 fixes:
3
 fixes:
4
-  - "github.com/9seconds/mtg/v2/::"
4
+  - "github.com/dolonet/mtg-multi/::"

+ 1
- 1
antireplay/noop.go Просмотреть файл

1
 package antireplay
1
 package antireplay
2
 
2
 
3
-import "github.com/9seconds/mtg/v2/mtglib"
3
+import "github.com/dolonet/mtg-multi/mtglib"
4
 
4
 
5
 type noop struct{}
5
 type noop struct{}
6
 
6
 

+ 1
- 1
antireplay/noop_test.go Просмотреть файл

3
 import (
3
 import (
4
 	"testing"
4
 	"testing"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/antireplay"
6
+	"github.com/dolonet/mtg-multi/antireplay"
7
 	"github.com/stretchr/testify/suite"
7
 	"github.com/stretchr/testify/suite"
8
 )
8
 )
9
 
9
 

+ 1
- 1
antireplay/stable_bloom_filter.go Просмотреть файл

3
 import (
3
 import (
4
 	"sync"
4
 	"sync"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/mtglib"
6
+	"github.com/dolonet/mtg-multi/mtglib"
7
 	"github.com/OneOfOne/xxhash"
7
 	"github.com/OneOfOne/xxhash"
8
 	boom "github.com/tylertreat/BoomFilters"
8
 	boom "github.com/tylertreat/BoomFilters"
9
 )
9
 )

+ 1
- 1
antireplay/stable_bloom_filter_test.go Просмотреть файл

3
 import (
3
 import (
4
 	"testing"
4
 	"testing"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/antireplay"
6
+	"github.com/dolonet/mtg-multi/antireplay"
7
 	"github.com/stretchr/testify/suite"
7
 	"github.com/stretchr/testify/suite"
8
 )
8
 )
9
 
9
 

+ 1
- 1
events/event_stream.go Просмотреть файл

5
 	"math/rand/v2"
5
 	"math/rand/v2"
6
 	"runtime"
6
 	"runtime"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/mtglib"
8
+	"github.com/dolonet/mtg-multi/mtglib"
9
 	"github.com/OneOfOne/xxhash"
9
 	"github.com/OneOfOne/xxhash"
10
 )
10
 )
11
 
11
 

+ 2
- 2
events/event_stream_test.go Просмотреть файл

6
 	"testing"
6
 	"testing"
7
 	"time"
7
 	"time"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/events"
10
-	"github.com/9seconds/mtg/v2/mtglib"
9
+	"github.com/dolonet/mtg-multi/events"
10
+	"github.com/dolonet/mtg-multi/mtglib"
11
 	"github.com/stretchr/testify/mock"
11
 	"github.com/stretchr/testify/mock"
12
 	"github.com/stretchr/testify/suite"
12
 	"github.com/stretchr/testify/suite"
13
 )
13
 )

+ 1
- 1
events/init.go Просмотреть файл

16
 // EventStart for that session yet.
16
 // EventStart for that session yet.
17
 package events
17
 package events
18
 
18
 
19
-import "github.com/9seconds/mtg/v2/mtglib"
19
+import "github.com/dolonet/mtg-multi/mtglib"
20
 
20
 
21
 // Observer is an instance that listens for the incoming events.
21
 // Observer is an instance that listens for the incoming events.
22
 //
22
 //

+ 1
- 1
events/init_test.go Просмотреть файл

1
 package events_test
1
 package events_test
2
 
2
 
3
 import (
3
 import (
4
-	"github.com/9seconds/mtg/v2/mtglib"
4
+	"github.com/dolonet/mtg-multi/mtglib"
5
 	"github.com/stretchr/testify/mock"
5
 	"github.com/stretchr/testify/mock"
6
 )
6
 )
7
 
7
 

+ 1
- 1
events/multi_observer.go Просмотреть файл

3
 import (
3
 import (
4
 	"sync"
4
 	"sync"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/mtglib"
6
+	"github.com/dolonet/mtg-multi/mtglib"
7
 )
7
 )
8
 
8
 
9
 type multiObserver struct {
9
 type multiObserver struct {

+ 1
- 1
events/noop.go Просмотреть файл

3
 import (
3
 import (
4
 	"context"
4
 	"context"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/mtglib"
6
+	"github.com/dolonet/mtg-multi/mtglib"
7
 )
7
 )
8
 
8
 
9
 type noop struct{}
9
 type noop struct{}

+ 2
- 2
events/noop_test.go Просмотреть файл

5
 	"net"
5
 	"net"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/events"
9
-	"github.com/9seconds/mtg/v2/mtglib"
8
+	"github.com/dolonet/mtg-multi/events"
9
+	"github.com/dolonet/mtg-multi/mtglib"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )
12
 
12
 

+ 1
- 1
go.mod Просмотреть файл

1
-module github.com/9seconds/mtg/v2
1
+module github.com/dolonet/mtg-multi
2
 
2
 
3
 go 1.26
3
 go 1.26
4
 
4
 

+ 3
- 3
internal/cli/access.go Просмотреть файл

10
 	"strconv"
10
 	"strconv"
11
 	"sync"
11
 	"sync"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/internal/config"
14
-	"github.com/9seconds/mtg/v2/internal/utils"
15
-	"github.com/9seconds/mtg/v2/mtglib"
13
+	"github.com/dolonet/mtg-multi/internal/config"
14
+	"github.com/dolonet/mtg-multi/internal/utils"
15
+	"github.com/dolonet/mtg-multi/mtglib"
16
 )
16
 )
17
 
17
 
18
 type accessResponseSecret struct {
18
 type accessResponseSecret struct {

+ 5
- 5
internal/cli/doctor.go Просмотреть файл

13
 	"text/template"
13
 	"text/template"
14
 	"time"
14
 	"time"
15
 
15
 
16
-	"github.com/9seconds/mtg/v2/essentials"
17
-	"github.com/9seconds/mtg/v2/internal/config"
18
-	"github.com/9seconds/mtg/v2/internal/utils"
19
-	"github.com/9seconds/mtg/v2/mtglib"
20
-	"github.com/9seconds/mtg/v2/network/v2"
16
+	"github.com/dolonet/mtg-multi/essentials"
17
+	"github.com/dolonet/mtg-multi/internal/config"
18
+	"github.com/dolonet/mtg-multi/internal/utils"
19
+	"github.com/dolonet/mtg-multi/mtglib"
20
+	"github.com/dolonet/mtg-multi/network/v2"
21
 	"github.com/beevik/ntp"
21
 	"github.com/beevik/ntp"
22
 )
22
 )
23
 
23
 

+ 1
- 1
internal/cli/generate_secret.go Просмотреть файл

3
 import (
3
 import (
4
 	"fmt"
4
 	"fmt"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/mtglib"
6
+	"github.com/dolonet/mtg-multi/mtglib"
7
 )
7
 )
8
 
8
 
9
 type GenerateSecret struct {
9
 type GenerateSecret struct {

+ 1
- 1
internal/cli/run.go Просмотреть файл

3
 import (
3
 import (
4
 	"fmt"
4
 	"fmt"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/internal/utils"
6
+	"github.com/dolonet/mtg-multi/internal/utils"
7
 )
7
 )
8
 
8
 
9
 type Run struct {
9
 type Run struct {

+ 11
- 11
internal/cli/run_proxy.go Просмотреть файл

7
 	"os"
7
 	"os"
8
 	"time"
8
 	"time"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/antireplay"
11
-	"github.com/9seconds/mtg/v2/events"
12
-	"github.com/9seconds/mtg/v2/internal/config"
13
-	"github.com/9seconds/mtg/v2/internal/proxyprotocol"
14
-	"github.com/9seconds/mtg/v2/internal/utils"
15
-	"github.com/9seconds/mtg/v2/ipblocklist"
16
-	"github.com/9seconds/mtg/v2/ipblocklist/files"
17
-	"github.com/9seconds/mtg/v2/logger"
18
-	"github.com/9seconds/mtg/v2/mtglib"
19
-	"github.com/9seconds/mtg/v2/network/v2"
20
-	"github.com/9seconds/mtg/v2/stats"
10
+	"github.com/dolonet/mtg-multi/antireplay"
11
+	"github.com/dolonet/mtg-multi/events"
12
+	"github.com/dolonet/mtg-multi/internal/config"
13
+	"github.com/dolonet/mtg-multi/internal/proxyprotocol"
14
+	"github.com/dolonet/mtg-multi/internal/utils"
15
+	"github.com/dolonet/mtg-multi/ipblocklist"
16
+	"github.com/dolonet/mtg-multi/ipblocklist/files"
17
+	"github.com/dolonet/mtg-multi/logger"
18
+	"github.com/dolonet/mtg-multi/mtglib"
19
+	"github.com/dolonet/mtg-multi/network/v2"
20
+	"github.com/dolonet/mtg-multi/stats"
21
 	"github.com/pires/go-proxyproto"
21
 	"github.com/pires/go-proxyproto"
22
 	"github.com/rs/zerolog"
22
 	"github.com/rs/zerolog"
23
 	"github.com/yl2chen/cidranger"
23
 	"github.com/yl2chen/cidranger"

+ 1
- 1
internal/cli/simple_run.go Просмотреть файл

6
 	"strconv"
6
 	"strconv"
7
 	"time"
7
 	"time"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/internal/config"
9
+	"github.com/dolonet/mtg-multi/internal/config"
10
 )
10
 )
11
 
11
 
12
 type SimpleRun struct {
12
 type SimpleRun struct {

+ 2
- 2
internal/cli/utils.go Просмотреть файл

7
 	"net/http"
7
 	"net/http"
8
 	"strings"
8
 	"strings"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/essentials"
11
-	"github.com/9seconds/mtg/v2/mtglib"
10
+	"github.com/dolonet/mtg-multi/essentials"
11
+	"github.com/dolonet/mtg-multi/mtglib"
12
 )
12
 )
13
 
13
 
14
 func getIP(ntw mtglib.Network, protocol string) net.IP {
14
 func getIP(ntw mtglib.Network, protocol string) net.IP {

+ 1
- 1
internal/config/config.go Просмотреть файл

7
 	"net"
7
 	"net"
8
 	"net/url"
8
 	"net/url"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/mtglib"
10
+	"github.com/dolonet/mtg-multi/mtglib"
11
 )
11
 )
12
 
12
 
13
 type Optional struct {
13
 type Optional struct {

+ 1
- 1
internal/config/config_test.go Просмотреть файл

5
 	"path/filepath"
5
 	"path/filepath"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )
11
 
11
 

+ 1
- 1
internal/config/type_blocklist_uri_test.go Просмотреть файл

7
 	"strings"
7
 	"strings"
8
 	"testing"
8
 	"testing"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/internal/config"
10
+	"github.com/dolonet/mtg-multi/internal/config"
11
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/assert"
12
 	"github.com/stretchr/testify/suite"
12
 	"github.com/stretchr/testify/suite"
13
 )
13
 )

+ 1
- 1
internal/config/type_bool_test.go Просмотреть файл

6
 	"strconv"
6
 	"strconv"
7
 	"testing"
7
 	"testing"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/internal/config"
9
+	"github.com/dolonet/mtg-multi/internal/config"
10
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/suite"
11
 	"github.com/stretchr/testify/suite"
12
 )
12
 )

+ 1
- 1
internal/config/type_bytes_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_concurrency_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_dc_test.go Просмотреть файл

5
 	"strconv"
5
 	"strconv"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/config/type_dns_uri_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_duration_test.go Просмотреть файл

5
 	"testing"
5
 	"testing"
6
 	"time"
6
 	"time"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/config/type_error_rate_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_hostport_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_http_path_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_https_url_test.go Просмотреть файл

5
 	"net/url"
5
 	"net/url"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/config/type_ip_test.go Просмотреть файл

5
 	"net"
5
 	"net"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/config/type_metric_prefix_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_port_test.go Просмотреть файл

4
 	"encoding/json"
4
 	"encoding/json"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 	"github.com/stretchr/testify/assert"
8
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
internal/config/type_prefer_ip_test.go Просмотреть файл

5
 	"strings"
5
 	"strings"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/config/type_proxy_url_test.go Просмотреть файл

5
 	"net/url"
5
 	"net/url"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/config/type_statsd_tag_format_test.go Просмотреть файл

5
 	"strings"
5
 	"strings"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/config"
8
+	"github.com/dolonet/mtg-multi/internal/config"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
internal/testlib/mtglib_network_mock.go Просмотреть файл

5
 	"net"
5
 	"net"
6
 	"net/http"
6
 	"net/http"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/essentials"
8
+	"github.com/dolonet/mtg-multi/essentials"
9
 	"github.com/stretchr/testify/mock"
9
 	"github.com/stretchr/testify/mock"
10
 )
10
 )
11
 
11
 

+ 1
- 1
internal/utils/make_qr_code_url_test.go Просмотреть файл

5
 	"strings"
5
 	"strings"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/utils"
8
+	"github.com/dolonet/mtg-multi/internal/utils"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )
11
 
11
 

+ 1
- 1
internal/utils/net_listener.go Просмотреть файл

4
 	"fmt"
4
 	"fmt"
5
 	"net"
5
 	"net"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/network"
7
+	"github.com/dolonet/mtg-multi/network"
8
 )
8
 )
9
 
9
 
10
 type Listener struct {
10
 type Listener struct {

+ 1
- 1
internal/utils/read_config.go Просмотреть файл

4
 	"fmt"
4
 	"fmt"
5
 	"os"
5
 	"os"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/config"
7
+	"github.com/dolonet/mtg-multi/internal/config"
8
 )
8
 )
9
 
9
 
10
 func ReadConfig(path string) (*config.Config, error) {
10
 func ReadConfig(path string) (*config.Config, error) {

+ 1
- 1
internal/utils/read_config_test.go Просмотреть файл

4
 	"path/filepath"
4
 	"path/filepath"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/utils"
7
+	"github.com/dolonet/mtg-multi/internal/utils"
8
 	"github.com/stretchr/testify/suite"
8
 	"github.com/stretchr/testify/suite"
9
 )
9
 )
10
 
10
 

+ 1
- 1
ipblocklist/files/http_test.go Просмотреть файл

8
 	"strings"
8
 	"strings"
9
 	"testing"
9
 	"testing"
10
 
10
 
11
-	"github.com/9seconds/mtg/v2/ipblocklist/files"
11
+	"github.com/dolonet/mtg-multi/ipblocklist/files"
12
 	"github.com/stretchr/testify/suite"
12
 	"github.com/stretchr/testify/suite"
13
 )
13
 )
14
 
14
 

+ 1
- 1
ipblocklist/files/local_test.go Просмотреть файл

7
 	"strings"
7
 	"strings"
8
 	"testing"
8
 	"testing"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/ipblocklist/files"
10
+	"github.com/dolonet/mtg-multi/ipblocklist/files"
11
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/assert"
12
 	"github.com/stretchr/testify/suite"
12
 	"github.com/stretchr/testify/suite"
13
 )
13
 )

+ 1
- 1
ipblocklist/files/mem_test.go Просмотреть файл

7
 	"strings"
7
 	"strings"
8
 	"testing"
8
 	"testing"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/ipblocklist/files"
10
+	"github.com/dolonet/mtg-multi/ipblocklist/files"
11
 	"github.com/stretchr/testify/suite"
11
 	"github.com/stretchr/testify/suite"
12
 )
12
 )
13
 
13
 

+ 2
- 2
ipblocklist/firehol.go Просмотреть файл

10
 	"sync"
10
 	"sync"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/ipblocklist/files"
14
-	"github.com/9seconds/mtg/v2/mtglib"
13
+	"github.com/dolonet/mtg-multi/ipblocklist/files"
14
+	"github.com/dolonet/mtg-multi/mtglib"
15
 	"github.com/panjf2000/ants/v2"
15
 	"github.com/panjf2000/ants/v2"
16
 	"github.com/yl2chen/cidranger"
16
 	"github.com/yl2chen/cidranger"
17
 )
17
 )

+ 4
- 4
ipblocklist/firehol_test.go Просмотреть файл

10
 	"testing"
10
 	"testing"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/internal/testlib"
14
-	"github.com/9seconds/mtg/v2/ipblocklist"
15
-	"github.com/9seconds/mtg/v2/logger"
16
-	"github.com/9seconds/mtg/v2/network"
13
+	"github.com/dolonet/mtg-multi/internal/testlib"
14
+	"github.com/dolonet/mtg-multi/ipblocklist"
15
+	"github.com/dolonet/mtg-multi/logger"
16
+	"github.com/dolonet/mtg-multi/network"
17
 	"github.com/jarcoal/httpmock"
17
 	"github.com/jarcoal/httpmock"
18
 	"github.com/stretchr/testify/mock"
18
 	"github.com/stretchr/testify/mock"
19
 	"github.com/stretchr/testify/suite"
19
 	"github.com/stretchr/testify/suite"

+ 1
- 1
ipblocklist/noop.go Просмотреть файл

4
 	"net"
4
 	"net"
5
 	"time"
5
 	"time"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/mtglib"
7
+	"github.com/dolonet/mtg-multi/mtglib"
8
 )
8
 )
9
 
9
 
10
 type noop struct{}
10
 type noop struct{}

+ 1
- 1
ipblocklist/noop_test.go Просмотреть файл

4
 	"net"
4
 	"net"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/ipblocklist"
7
+	"github.com/dolonet/mtg-multi/ipblocklist"
8
 	"github.com/stretchr/testify/suite"
8
 	"github.com/stretchr/testify/suite"
9
 )
9
 )
10
 
10
 

+ 1
- 1
logger/noop.go Просмотреть файл

1
 package logger
1
 package logger
2
 
2
 
3
-import "github.com/9seconds/mtg/v2/mtglib"
3
+import "github.com/dolonet/mtg-multi/mtglib"
4
 
4
 
5
 type noopLogger struct{}
5
 type noopLogger struct{}
6
 
6
 

+ 2
- 2
logger/noop_test.go Просмотреть файл

4
 	"io"
4
 	"io"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/testlib"
8
-	"github.com/9seconds/mtg/v2/logger"
7
+	"github.com/dolonet/mtg-multi/internal/testlib"
8
+	"github.com/dolonet/mtg-multi/logger"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )
11
 
11
 

+ 1
- 1
logger/zerolog.go Просмотреть файл

3
 import (
3
 import (
4
 	"fmt"
4
 	"fmt"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/mtglib"
6
+	"github.com/dolonet/mtg-multi/mtglib"
7
 	"github.com/rs/zerolog"
7
 	"github.com/rs/zerolog"
8
 )
8
 )
9
 
9
 

+ 2
- 2
logger/zerolog_test.go Просмотреть файл

8
 	"testing"
8
 	"testing"
9
 	"time"
9
 	"time"
10
 
10
 
11
-	"github.com/9seconds/mtg/v2/logger"
12
-	"github.com/9seconds/mtg/v2/mtglib"
11
+	"github.com/dolonet/mtg-multi/logger"
12
+	"github.com/dolonet/mtg-multi/mtglib"
13
 	"github.com/rs/zerolog"
13
 	"github.com/rs/zerolog"
14
 	"github.com/stretchr/testify/assert"
14
 	"github.com/stretchr/testify/assert"
15
 	"github.com/stretchr/testify/suite"
15
 	"github.com/stretchr/testify/suite"

+ 1
- 1
main.go Просмотреть файл

9
 package main
9
 package main
10
 
10
 
11
 import (
11
 import (
12
-	"github.com/9seconds/mtg/v2/internal/cli"
12
+	"github.com/dolonet/mtg-multi/internal/cli"
13
 	"github.com/alecthomas/kong"
13
 	"github.com/alecthomas/kong"
14
 )
14
 )
15
 
15
 

+ 1
- 1
mtglib/conns.go Просмотреть файл

10
 	"sync/atomic"
10
 	"sync/atomic"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/essentials"
13
+	"github.com/dolonet/mtg-multi/essentials"
14
 	"github.com/pires/go-proxyproto"
14
 	"github.com/pires/go-proxyproto"
15
 )
15
 )
16
 
16
 

+ 1
- 1
mtglib/conns_internal_test.go Просмотреть файл

10
 	"testing"
10
 	"testing"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/internal/testlib"
13
+	"github.com/dolonet/mtg-multi/internal/testlib"
14
 	"github.com/pires/go-proxyproto"
14
 	"github.com/pires/go-proxyproto"
15
 	"github.com/stretchr/testify/mock"
15
 	"github.com/stretchr/testify/mock"
16
 	"github.com/stretchr/testify/suite"
16
 	"github.com/stretchr/testify/suite"

+ 1
- 1
mtglib/counting_conn.go Просмотреть файл

1
 package mtglib
1
 package mtglib
2
 
2
 
3
 import (
3
 import (
4
-	"github.com/9seconds/mtg/v2/essentials"
4
+	"github.com/dolonet/mtg-multi/essentials"
5
 )
5
 )
6
 
6
 
7
 // countingConn wraps essentials.Conn and counts bytes through a cached
7
 // countingConn wraps essentials.Conn and counts bytes through a cached

+ 1
- 1
mtglib/events_test.go Просмотреть файл

5
 	"testing"
5
 	"testing"
6
 	"time"
6
 	"time"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/mtglib"
8
+	"github.com/dolonet/mtg-multi/mtglib"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )
11
 
11
 

+ 1
- 1
mtglib/init.go Просмотреть файл

23
 	"net/http"
23
 	"net/http"
24
 	"time"
24
 	"time"
25
 
25
 
26
-	"github.com/9seconds/mtg/v2/essentials"
26
+	"github.com/dolonet/mtg-multi/essentials"
27
 )
27
 )
28
 
28
 
29
 var (
29
 var (

+ 1
- 1
mtglib/internal/dc/addr.go Просмотреть файл

3
 import (
3
 import (
4
 	"fmt"
4
 	"fmt"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
6
+	"github.com/dolonet/mtg-multi/mtglib/internal/obfuscation"
7
 )
7
 )
8
 
8
 
9
 type Addr struct {
9
 type Addr struct {

+ 1
- 1
mtglib/internal/dc/init.go Просмотреть файл

5
 	"net"
5
 	"net"
6
 	"time"
6
 	"time"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/essentials"
8
+	"github.com/dolonet/mtg-multi/essentials"
9
 )
9
 )
10
 
10
 
11
 type preferIP uint8
11
 type preferIP uint8

+ 2
- 2
mtglib/internal/doppel/conn.go Просмотреть файл

6
 	"sync"
6
 	"sync"
7
 	"time"
7
 	"time"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/essentials"
10
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
9
+	"github.com/dolonet/mtg-multi/essentials"
10
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
11
 )
11
 )
12
 
12
 
13
 var doppelBufPool = sync.Pool{
13
 var doppelBufPool = sync.Pool{

+ 2
- 2
mtglib/internal/doppel/conn_test.go Просмотреть файл

10
 	"testing"
10
 	"testing"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/internal/testlib"
14
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
13
+	"github.com/dolonet/mtg-multi/internal/testlib"
14
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
15
 	"github.com/stretchr/testify/mock"
15
 	"github.com/stretchr/testify/mock"
16
 	"github.com/stretchr/testify/suite"
16
 	"github.com/stretchr/testify/suite"
17
 )
17
 )

+ 1
- 1
mtglib/internal/doppel/ganger.go Просмотреть файл

7
 	"sync/atomic"
7
 	"sync/atomic"
8
 	"time"
8
 	"time"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/essentials"
10
+	"github.com/dolonet/mtg-multi/essentials"
11
 )
11
 )
12
 
12
 
13
 const (
13
 const (

+ 1
- 1
mtglib/internal/doppel/ganger_test.go Просмотреть файл

6
 	"testing"
6
 	"testing"
7
 	"time"
7
 	"time"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/internal/testlib"
9
+	"github.com/dolonet/mtg-multi/internal/testlib"
10
 	"github.com/stretchr/testify/mock"
10
 	"github.com/stretchr/testify/mock"
11
 	"github.com/stretchr/testify/suite"
11
 	"github.com/stretchr/testify/suite"
12
 )
12
 )

+ 2
- 2
mtglib/internal/doppel/init.go Просмотреть файл

6
 	"net/http"
6
 	"net/http"
7
 	"time"
7
 	"time"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/essentials"
10
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
9
+	"github.com/dolonet/mtg-multi/essentials"
10
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
11
 )
11
 )
12
 
12
 
13
 const (
13
 const (

+ 1
- 1
mtglib/internal/doppel/init_test.go Просмотреть файл

8
 	"net/http/httptest"
8
 	"net/http/httptest"
9
 	"time"
9
 	"time"
10
 
10
 
11
-	"github.com/9seconds/mtg/v2/essentials"
11
+	"github.com/dolonet/mtg-multi/essentials"
12
 	"github.com/stretchr/testify/mock"
12
 	"github.com/stretchr/testify/mock"
13
 	"github.com/stretchr/testify/suite"
13
 	"github.com/stretchr/testify/suite"
14
 )
14
 )

+ 2
- 2
mtglib/internal/doppel/scout.go Просмотреть файл

8
 	"strings"
8
 	"strings"
9
 	"time"
9
 	"time"
10
 
10
 
11
-	"github.com/9seconds/mtg/v2/essentials"
12
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
11
+	"github.com/dolonet/mtg-multi/essentials"
12
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
13
 )
13
 )
14
 
14
 
15
 // ScoutResult holds measurements from a single scout HTTP request.
15
 // ScoutResult holds measurements from a single scout HTTP request.

+ 2
- 2
mtglib/internal/doppel/scout_conn.go Просмотреть файл

5
 	"encoding/binary"
5
 	"encoding/binary"
6
 	"io"
6
 	"io"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/essentials"
9
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
8
+	"github.com/dolonet/mtg-multi/essentials"
9
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
10
 )
10
 )
11
 
11
 
12
 type ScoutConn struct {
12
 type ScoutConn struct {

+ 1
- 1
mtglib/internal/doppel/scout_conn_collected_test.go Просмотреть файл

5
 	"testing"
5
 	"testing"
6
 	"time"
6
 	"time"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
8
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )
11
 
11
 

+ 1
- 1
mtglib/internal/obfuscation/conn.go Просмотреть файл

3
 import (
3
 import (
4
 	"crypto/cipher"
4
 	"crypto/cipher"
5
 
5
 
6
-	"github.com/9seconds/mtg/v2/essentials"
6
+	"github.com/dolonet/mtg-multi/essentials"
7
 )
7
 )
8
 
8
 
9
 type conn struct {
9
 type conn struct {

+ 2
- 2
mtglib/internal/obfuscation/conn_test.go Просмотреть файл

6
 	"encoding/hex"
6
 	"encoding/hex"
7
 	"testing"
7
 	"testing"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/essentials"
10
-	"github.com/9seconds/mtg/v2/internal/testlib"
9
+	"github.com/dolonet/mtg-multi/essentials"
10
+	"github.com/dolonet/mtg-multi/internal/testlib"
11
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/assert"
12
 	"github.com/stretchr/testify/mock"
12
 	"github.com/stretchr/testify/mock"
13
 	"github.com/stretchr/testify/suite"
13
 	"github.com/stretchr/testify/suite"

+ 1
- 1
mtglib/internal/obfuscation/obfuscator.go Просмотреть файл

10
 	"hash"
10
 	"hash"
11
 	"io"
11
 	"io"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/essentials"
13
+	"github.com/dolonet/mtg-multi/essentials"
14
 )
14
 )
15
 
15
 
16
 type Obfuscator struct {
16
 type Obfuscator struct {

+ 3
- 3
mtglib/internal/obfuscation/obfuscator_fuzz_test.go Просмотреть файл

4
 	"bytes"
4
 	"bytes"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/testlib"
8
-	"github.com/9seconds/mtg/v2/mtglib"
9
-	"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
7
+	"github.com/dolonet/mtg-multi/internal/testlib"
8
+	"github.com/dolonet/mtg-multi/mtglib"
9
+	"github.com/dolonet/mtg-multi/mtglib/internal/obfuscation"
10
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/mock"
11
 	"github.com/stretchr/testify/mock"
12
 )
12
 )

+ 3
- 3
mtglib/internal/obfuscation/obfuscator_test.go Просмотреть файл

4
 	"bytes"
4
 	"bytes"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/testlib"
8
-	"github.com/9seconds/mtg/v2/mtglib"
9
-	"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
7
+	"github.com/dolonet/mtg-multi/internal/testlib"
8
+	"github.com/dolonet/mtg-multi/mtglib"
9
+	"github.com/dolonet/mtg-multi/mtglib/internal/obfuscation"
10
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/mock"
11
 	"github.com/stretchr/testify/mock"
12
 	"github.com/stretchr/testify/require"
12
 	"github.com/stretchr/testify/require"

+ 1
- 1
mtglib/internal/relay/pool_settings_constrained.go Просмотреть файл

2
 
2
 
3
 package relay
3
 package relay
4
 
4
 
5
-import "github.com/9seconds/mtg/v2/mtglib/internal/tls"
5
+import "github.com/dolonet/mtg-multi/mtglib/internal/tls"
6
 
6
 
7
 const (
7
 const (
8
 	// MIPS is quite short in resources, and usually it means that it will run
8
 	// MIPS is quite short in resources, and usually it means that it will run

+ 1
- 1
mtglib/internal/relay/pool_settings_other.go Просмотреть файл

2
 
2
 
3
 package relay
3
 package relay
4
 
4
 
5
-import "github.com/9seconds/mtg/v2/mtglib/internal/tls"
5
+import "github.com/dolonet/mtg-multi/mtglib/internal/tls"
6
 
6
 
7
 const (
7
 const (
8
 	bufPoolSize = tls.MaxRecordPayloadSize
8
 	bufPoolSize = tls.MaxRecordPayloadSize

+ 1
- 1
mtglib/internal/relay/relay.go Просмотреть файл

5
 	"errors"
5
 	"errors"
6
 	"io"
6
 	"io"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/essentials"
8
+	"github.com/dolonet/mtg-multi/essentials"
9
 )
9
 )
10
 
10
 
11
 func Relay(ctx context.Context, log Logger, telegramConn, clientConn essentials.Conn) {
11
 func Relay(ctx context.Context, log Logger, telegramConn, clientConn essentials.Conn) {

+ 2
- 2
mtglib/internal/relay/relay_bench_test.go Просмотреть файл

13
 	"sync/atomic"
13
 	"sync/atomic"
14
 	"testing"
14
 	"testing"
15
 
15
 
16
-	"github.com/9seconds/mtg/v2/essentials"
17
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
16
+	"github.com/dolonet/mtg-multi/essentials"
17
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
18
 )
18
 )
19
 
19
 
20
 // mockConn wraps a net.Conn to satisfy essentials.Conn.
20
 // mockConn wraps a net.Conn to satisfy essentials.Conn.

+ 2
- 2
mtglib/internal/relay/relay_test.go Просмотреть файл

5
 	"io"
5
 	"io"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/testlib"
9
-	"github.com/9seconds/mtg/v2/mtglib/internal/relay"
8
+	"github.com/dolonet/mtg-multi/internal/testlib"
9
+	"github.com/dolonet/mtg-multi/mtglib/internal/relay"
10
 	"github.com/stretchr/testify/mock"
10
 	"github.com/stretchr/testify/mock"
11
 	"github.com/stretchr/testify/suite"
11
 	"github.com/stretchr/testify/suite"
12
 )
12
 )

+ 1
- 1
mtglib/internal/relay/stack_bench_test.go Просмотреть файл

6
 	"sync"
6
 	"sync"
7
 	"testing"
7
 	"testing"
8
 
8
 
9
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
9
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
10
 )
10
 )
11
 
11
 
12
 // BenchmarkStackVsPool measures memory consumption when N goroutines hold
12
 // BenchmarkStackVsPool measures memory consumption when N goroutines hold

+ 1
- 1
mtglib/internal/relay/stress_bench_test.go Просмотреть файл

10
 	"testing"
10
 	"testing"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
13
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
14
 )
14
 )
15
 
15
 
16
 // ============================================================
16
 // ============================================================

+ 1
- 1
mtglib/internal/tls/conn.go Просмотреть файл

4
 	"bufio"
4
 	"bufio"
5
 	"bytes"
5
 	"bytes"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/essentials"
7
+	"github.com/dolonet/mtg-multi/essentials"
8
 )
8
 )
9
 
9
 
10
 const (
10
 const (

+ 1
- 1
mtglib/internal/tls/conn_test.go Просмотреть файл

4
 	"io"
4
 	"io"
5
 	"testing"
5
 	"testing"
6
 
6
 
7
-	"github.com/9seconds/mtg/v2/internal/testlib"
7
+	"github.com/dolonet/mtg-multi/internal/testlib"
8
 	"github.com/stretchr/testify/mock"
8
 	"github.com/stretchr/testify/mock"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )

+ 1
- 1
mtglib/internal/tls/fake/client_side.go Просмотреть файл

12
 	"slices"
12
 	"slices"
13
 	"time"
13
 	"time"
14
 
14
 
15
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
15
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
16
 )
16
 )
17
 
17
 
18
 const (
18
 const (

+ 3
- 3
mtglib/internal/tls/fake/client_side_fuzz_test.go Просмотреть файл

5
 	"testing"
5
 	"testing"
6
 	"time"
6
 	"time"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/testlib"
9
-	"github.com/9seconds/mtg/v2/mtglib"
10
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
8
+	"github.com/dolonet/mtg-multi/internal/testlib"
9
+	"github.com/dolonet/mtg-multi/mtglib"
10
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls/fake"
11
 	"github.com/stretchr/testify/assert"
11
 	"github.com/stretchr/testify/assert"
12
 	"github.com/stretchr/testify/mock"
12
 	"github.com/stretchr/testify/mock"
13
 	"github.com/stretchr/testify/require"
13
 	"github.com/stretchr/testify/require"

+ 2
- 2
mtglib/internal/tls/fake/client_side_snapshot_test.go Просмотреть файл

9
 	"strings"
9
 	"strings"
10
 	"testing"
10
 	"testing"
11
 
11
 
12
-	"github.com/9seconds/mtg/v2/mtglib"
13
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
12
+	"github.com/dolonet/mtg-multi/mtglib"
13
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls/fake"
14
 	"github.com/stretchr/testify/assert"
14
 	"github.com/stretchr/testify/assert"
15
 	"github.com/stretchr/testify/mock"
15
 	"github.com/stretchr/testify/mock"
16
 	"github.com/stretchr/testify/require"
16
 	"github.com/stretchr/testify/require"

+ 4
- 4
mtglib/internal/tls/fake/client_side_test.go Просмотреть файл

11
 	"testing"
11
 	"testing"
12
 	"time"
12
 	"time"
13
 
13
 
14
-	"github.com/9seconds/mtg/v2/internal/testlib"
15
-	"github.com/9seconds/mtg/v2/mtglib"
16
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
17
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
14
+	"github.com/dolonet/mtg-multi/internal/testlib"
15
+	"github.com/dolonet/mtg-multi/mtglib"
16
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
17
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls/fake"
18
 	"github.com/stretchr/testify/mock"
18
 	"github.com/stretchr/testify/mock"
19
 	"github.com/stretchr/testify/require"
19
 	"github.com/stretchr/testify/require"
20
 	"github.com/stretchr/testify/suite"
20
 	"github.com/stretchr/testify/suite"

+ 1
- 1
mtglib/internal/tls/fake/server_side.go Просмотреть файл

9
 	"io"
9
 	"io"
10
 	rnd "math/rand/v2"
10
 	rnd "math/rand/v2"
11
 
11
 
12
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
12
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
13
 	"golang.org/x/crypto/curve25519"
13
 	"golang.org/x/crypto/curve25519"
14
 )
14
 )
15
 
15
 

+ 3
- 3
mtglib/internal/tls/fake/server_side_test.go Просмотреть файл

7
 	"crypto/sha256"
7
 	"crypto/sha256"
8
 	"testing"
8
 	"testing"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/mtglib"
11
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
12
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
10
+	"github.com/dolonet/mtg-multi/mtglib"
11
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
12
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls/fake"
13
 	"github.com/stretchr/testify/suite"
13
 	"github.com/stretchr/testify/suite"
14
 )
14
 )
15
 
15
 

+ 7
- 7
mtglib/proxy.go Просмотреть файл

10
 	"sync"
10
 	"sync"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/essentials"
14
-	"github.com/9seconds/mtg/v2/mtglib/internal/dc"
15
-	"github.com/9seconds/mtg/v2/mtglib/internal/doppel"
16
-	"github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
17
-	"github.com/9seconds/mtg/v2/mtglib/internal/relay"
18
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls"
19
-	"github.com/9seconds/mtg/v2/mtglib/internal/tls/fake"
13
+	"github.com/dolonet/mtg-multi/essentials"
14
+	"github.com/dolonet/mtg-multi/mtglib/internal/dc"
15
+	"github.com/dolonet/mtg-multi/mtglib/internal/doppel"
16
+	"github.com/dolonet/mtg-multi/mtglib/internal/obfuscation"
17
+	"github.com/dolonet/mtg-multi/mtglib/internal/relay"
18
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls"
19
+	"github.com/dolonet/mtg-multi/mtglib/internal/tls/fake"
20
 	"github.com/panjf2000/ants/v2"
20
 	"github.com/panjf2000/ants/v2"
21
 )
21
 )
22
 
22
 

+ 7
- 7
mtglib/proxy_test.go Просмотреть файл

10
 	"testing"
10
 	"testing"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"github.com/9seconds/mtg/v2/antireplay"
14
-	"github.com/9seconds/mtg/v2/events"
15
-	"github.com/9seconds/mtg/v2/ipblocklist"
16
-	"github.com/9seconds/mtg/v2/ipblocklist/files"
17
-	"github.com/9seconds/mtg/v2/logger"
18
-	"github.com/9seconds/mtg/v2/mtglib"
19
-	"github.com/9seconds/mtg/v2/network"
13
+	"github.com/dolonet/mtg-multi/antireplay"
14
+	"github.com/dolonet/mtg-multi/events"
15
+	"github.com/dolonet/mtg-multi/ipblocklist"
16
+	"github.com/dolonet/mtg-multi/ipblocklist/files"
17
+	"github.com/dolonet/mtg-multi/logger"
18
+	"github.com/dolonet/mtg-multi/mtglib"
19
+	"github.com/dolonet/mtg-multi/network"
20
 	"github.com/stretchr/testify/suite"
20
 	"github.com/stretchr/testify/suite"
21
 	"github.com/yl2chen/cidranger"
21
 	"github.com/yl2chen/cidranger"
22
 )
22
 )

+ 1
- 1
mtglib/secret_test.go Просмотреть файл

5
 	"encoding/json"
5
 	"encoding/json"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/mtglib"
8
+	"github.com/dolonet/mtg-multi/mtglib"
9
 	"github.com/stretchr/testify/assert"
9
 	"github.com/stretchr/testify/assert"
10
 	"github.com/stretchr/testify/suite"
10
 	"github.com/stretchr/testify/suite"
11
 )
11
 )

+ 1
- 1
mtglib/stream_context.go Просмотреть файл

7
 	"net"
7
 	"net"
8
 	"time"
8
 	"time"
9
 
9
 
10
-	"github.com/9seconds/mtg/v2/essentials"
10
+	"github.com/dolonet/mtg-multi/essentials"
11
 )
11
 )
12
 
12
 
13
 type streamContext struct {
13
 type streamContext struct {

+ 1
- 1
mtglib/stream_context_internal_test.go Просмотреть файл

5
 	"net"
5
 	"net"
6
 	"testing"
6
 	"testing"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/internal/testlib"
8
+	"github.com/dolonet/mtg-multi/internal/testlib"
9
 	"github.com/stretchr/testify/suite"
9
 	"github.com/stretchr/testify/suite"
10
 )
10
 )
11
 
11
 

+ 1
- 1
network/circuit_breaker.go Просмотреть файл

5
 	"sync/atomic"
5
 	"sync/atomic"
6
 	"time"
6
 	"time"
7
 
7
 
8
-	"github.com/9seconds/mtg/v2/essentials"
8
+	"github.com/dolonet/mtg-multi/essentials"
9
 )
9
 )
10
 
10
 
11
 const (
11
 const (

+ 1
- 1
network/circuit_breaker_internal_test.go Просмотреть файл

9
 	"testing"
9
 	"testing"
10
 	"time"
10
 	"time"
11
 
11
 
12
-	"github.com/9seconds/mtg/v2/internal/testlib"
12
+	"github.com/dolonet/mtg-multi/internal/testlib"
13
 	"github.com/stretchr/testify/mock"
13
 	"github.com/stretchr/testify/mock"
14
 	"github.com/stretchr/testify/suite"
14
 	"github.com/stretchr/testify/suite"
15
 )
15
 )

+ 0
- 0
network/default.go Просмотреть файл


Некоторые файлы не были показаны из-за большого количества измененных файлов

Загрузка…
Отмена
Сохранить