mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:54:02 +03:00
Use native dialer to communicate with fronting domain
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/9seconds/mtg/v2/mtglib"
|
||||
"github.com/9seconds/mtg/v2/network/v2"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
@@ -12,7 +13,7 @@ import (
|
||||
type BaseNetworkTestSuite struct {
|
||||
EchoServerTestSuite
|
||||
|
||||
net network.Network
|
||||
net mtglib.Network
|
||||
}
|
||||
|
||||
func (suite *BaseNetworkTestSuite) SetupSuite() {
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"github.com/9seconds/mtg/v2/mtglib"
|
||||
"github.com/9seconds/mtg/v2/network/v2"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -17,7 +18,7 @@ type SocksProxyTestSuite struct {
|
||||
EchoServerTestSuite
|
||||
|
||||
wg sync.WaitGroup
|
||||
baseNetwork network.Network
|
||||
baseNetwork mtglib.Network
|
||||
|
||||
noAuthURL *url.URL
|
||||
authURL *url.URL
|
||||
@@ -85,7 +86,7 @@ func (suite *SocksProxyTestSuite) TestRead() {
|
||||
|
||||
for name, proxies := range testData {
|
||||
suite.T().Run(name, func(t *testing.T) {
|
||||
proxyNetworks := []network.Network{}
|
||||
proxyNetworks := []mtglib.Network{}
|
||||
|
||||
for _, u := range proxies {
|
||||
value, err := network.NewProxyNetwork(suite.baseNetwork, u)
|
||||
|
||||
Reference in New Issue
Block a user