From 42da0ba3d722d40e101fad26495f7543d7b00ceb Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Thu, 6 Apr 2023 10:18:37 +0300 Subject: [PATCH] Update btserver.go --- server/torr/btserver.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/torr/btserver.go b/server/torr/btserver.go index e831f00..baabced 100644 --- a/server/torr/btserver.go +++ b/server/torr/btserver.go @@ -89,9 +89,6 @@ func (bt *BTServer) configure(ctx context.Context) { upnpID := "TorrServer/" + version.Version cliVers := userAgent - // Don't announce to trackers. This only leaves DHT to discover peers. - bt.config.DisableTrackers = true - bt.config.PeriodicallyAnnounceTorrentsToDht = true // no peers from DHT with false // bt.config.AlwaysWantConns = true bt.config.Debug = settings.BTsets.EnableDebug bt.config.DisableIPv6 = !settings.BTsets.EnableIPv6 @@ -207,12 +204,6 @@ func (bt *BTServer) RemoveTorrent(hash torrent.InfoHash) { } func isPrivateIP(ip net.IP) bool { - // log.Println(ip, "IsLoopback:", ip.IsLoopback()) - // log.Println(ip, "IsPrivate:", ip.IsPrivate()) - // log.Println(ip, "IsLinkLocalUnicast:", ip.IsLinkLocalUnicast()) - // log.Println(ip, "IsLinkLocalMulticast:", ip.IsLinkLocalMulticast()) - // log.Println(ip, "IsGlobalUnicast:", ip.IsGlobalUnicast()) - if ip.IsLoopback() || ip.IsPrivate() || ip.IsLinkLocalUnicast() || ip.IsLinkLocalMulticast() { return true }