Add NativeDialer method to mtglib.Network

This commit is contained in:
9seconds
2026-03-12 19:25:53 +01:00
parent 6493688282
commit 94e4179fb7
7 changed files with 19 additions and 17 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"time"
"github.com/9seconds/mtg/v2/essentials"
"github.com/9seconds/mtg/v2/mtglib"
)
type network struct {
@@ -70,7 +71,7 @@ func New(
tcpTimeout,
httpTimeout,
idleTimeout time.Duration,
) Network {
) mtglib.Network {
if dnsResolver == nil {
dnsResolver = net.DefaultResolver
}