Redact list source

This commit is contained in:
Josh Deprez 2024-05-08 15:41:39 +10:00
parent 66e59320b8
commit 5f32d1960d
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -256,12 +256,12 @@ func main() {
// ------------------------- Configured peer setup ------------------------
if cfg.PeerListURL != "" {
log.Printf("Fetching peer list from %s...", cfg.PeerListURL)
log.Print("Fetching peer list...")
existing := len(cfg.Peers)
func() {
resp, err := http.Get(cfg.PeerListURL)
if err != nil {
log.Fatalf("Couldn't fetch peer list: %v", err)
log.Fatalf("Couldn't fetch peer list!")
}
defer resp.Body.Close()
@ -293,7 +293,7 @@ func main() {
//log.Printf("resolved %q to %v", peerStr, raddr)
if raddr.IP.Equal(localIP) {
log.Print("peer == me, skipping")
//log.Print("peer == me, skipping")
continue
}