Use native dialer to communicate with fronting domain

This commit is contained in:
9seconds
2026-03-12 20:51:02 +01:00
parent 94e4179fb7
commit 62cba24071
4 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -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() {
+3 -2
View File
@@ -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)