Get ext. IP from UPnP, make sure addrMe IsRoutable() in version. #817

pull TheBlueMatt wants to merge 1 commits into bitcoin:master from TheBlueMatt:dpiversionfix changing 1 files +21 −1
  1. TheBlueMatt commented at 5:25 AM on February 10, 2012: member

    This fixes a potential bug where some NATs may replace the node's interal IP with its external IP in version messages, causing incorrect checksums when version messages begin being checksummed on February 14, 2012.

  2. TheBlueMatt commented at 5:25 AM on February 10, 2012: member
  3. Get ext. IP from UPnP, make sure addrMe IsRoutable() in version.
    This fixes a potential bug where some NATs may replace the node's
    interal IP with its external IP in version messages, causing
    incorrect checksums when version messages begin being checksummed
    on February 14, 2012.
    baba6e7de2
  4. gmaxwell commented at 4:31 PM on February 10, 2012: contributor

    This is a good idea regardless of the NAT issue.

    There is no reason to leak internal non-routable addresses in version messages, and that part of the patch is clearly safe because using a proxy has the same effect (also because we don't actually do anything with that data).

    Using UPNP to get our external IP is also a good idea. The current dependance on centralized address identifying services is a bad one.

  5. gavinandresen commented at 5:03 PM on February 10, 2012: contributor

    ACK

  6. sipa commented at 4:25 PM on February 11, 2012: member

    ACK

  7. gmaxwell commented at 9:07 PM on February 11, 2012: contributor

    ACK, took me a while to setup upnp to test this.

  8. gmaxwell referenced this in commit 9f3de58d83 on Feb 11, 2012
  9. gmaxwell merged this on Feb 11, 2012
  10. gmaxwell closed this on Feb 11, 2012

  11. coblee referenced this in commit 36eaf84bb9 on Jul 17, 2012
  12. destenson referenced this in commit a4954bf0fd on Jun 26, 2016
  13. ptschip referenced this in commit 9df389cd01 on Dec 19, 2017
  14. lateminer referenced this in commit 37a06eaa93 on Feb 28, 2019
  15. Losangelosgenetics referenced this in commit 85f4fec1da on Mar 12, 2020
  16. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me