Use native dialer for scout

This commit is contained in:
9seconds
2026-03-12 21:47:03 +01:00
parent a85348d6be
commit cc63e762e3
3 changed files with 13 additions and 3 deletions
+4
View File
@@ -30,6 +30,10 @@ func (s SimpleNetwork) DialContext(ctx context.Context, network, address string)
return conn.(*net.TCPConn), nil
}
func (s SimpleNetwork) NativeDialer() *net.Dialer {
return &net.Dialer{}
}
func (s SimpleNetwork) MakeHTTPClient(dialFunc func(ctx context.Context, network, address string) (essentials.Conn, error)) *http.Client {
if dialFunc == nil {
dialFunc = s.DialContext