Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/rainbow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.23.0
Choose a base ref
...
head repository: ipfs/rainbow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.23.1
Choose a head ref
  • 3 commits
  • 8 files changed
  • 2 contributors

Commits on May 13, 2026

  1. update dependencies (#371)

    - update github.com/ipfs/go-ds-pebble to v0.5.11
    - update github.com/ipfs/go-log/v2 to v2.9.2
    - update github.com/ipfs/go-unixfsnode to v1.10.4
    - update github.com/libp2p/go-libp2p-kad-dht to v0.39.2
    - update opentelemetry
    gammazero authored May 13, 2026
    Configuration menu
    Copy the full SHA
    f1bfdea View commit details
    Browse the repository at this point in the history

Commits on May 18, 2026

  1. fix: bitswap connect now sees dht-host addresses (#372)

    * fix: bitswap connect now sees dht-host addresses
    
    the dht runs on a separate libp2p host by default
    (--dht-shared-host=false). its peerstore captures listen addresses
    from identify exchanges and kademlia walks, but those addresses never
    reach the bitswap host. for providers whose record advertises only
    stale or unreachable addresses, bitswap's connect had nothing better
    to dial. kubo and ipfs-check use one host for both and avoid this.
    
    wrap the bitswap host so each connect copies the dht host's known
    addresses for the target peer into the main host's peerstore before
    dialing. only installed when the hosts are split.
    
    * fix: drop non-public addrs from peerstore bridge
    
    dhtHost's peerstore can hold loopback or rfc1918 entries that
    misconfigured peers stored in their routing tables. forwarding
    those into bitswap's dial set just burns resource-manager budget
    on dials that can never connect.
    
    also expand peerstoreMergingHost's godoc to spell out the
    basichost.Connect -> dialPeer mechanism and the public-only policy.
    
    * refactor: narrow bridge param to AddrBook
    
    setupBitswapExchange only ever reads dhtHost.Peerstore() for the
    bridge; pass that peerstore.AddrBook directly instead of the full
    host.Host. derive it at the call site in setup.go, where the
    "only when split" check already lives.
    
    * refactor: narrow bridge filter to IP/DNS heads
    
    slices.DeleteFunc replaces the manual filter loop. The predicate now
    matches go-libp2p's hasIPOrDNSComponent guard from
    BasicHost.filterPublicAddrs: IsPublicAddr is only consulted for
    IP-rooted (P_IP4/P_IP6/P_IP6ZONE) and DNS-rooted
    (P_DNS/P_DNS4/P_DNS6/P_DNSADDR) addresses. Pure /p2p-circuit hops and
    unknown transports pass through so the swarm can resolve them at dial
    time.
    
    This drops special-use DNS hostnames (.local, .localhost, .invalid,
    .home.arpa, .test) for the same reason RFC1918 and loopback were
    already dropped: they cannot resolve to a useful destination from a
    public gateway.
    
    Table-driven test covers public/private IPv4 and IPv6, link-local with
    zone id, relay hops with and without IP heads, ordinary DNS, and each
    special-use DNS family.
    lidel authored May 18, 2026
    Configuration menu
    Copy the full SHA
    627f997 View commit details
    Browse the repository at this point in the history
  2. chore: release v1.23.1 (#373)

    lidel authored May 18, 2026
    Configuration menu
    Copy the full SHA
    a764cb0 View commit details
    Browse the repository at this point in the history
Loading
⌂ 换网址