]> Sergey Matveev's repositories - btrtrc.git/blobdiff - config.go
Add ClientConfig.WebTransport
[btrtrc.git] / config.go
index cfcfe392c3beb0d550c9ff6b6b451cb2f4eb2019..0c029a7e2c3e4ba0b2bf98008ebaaad1e9225fb0 100644 (file)
--- a/config.go
+++ b/config.go
@@ -107,6 +107,8 @@ type ClientConfig struct {
        Debug  bool `help:"enable debugging"`
        Logger log.Logger
 
+       // Used for torrent sources and webseeding if set.
+       WebTransport http.RoundTripper
        // Defines proxy for HTTP requests, such as for trackers. It's commonly set from the result of
        // "net/http".ProxyURL(HTTPProxy).
        HTTPProxy func(*http.Request) (*url.URL, error)