Defaults UPNP to off when discovery is disabled. #6792

pull gmaxwell wants to merge 1 commits into bitcoin:master from gmaxwell:upnp_off_on_ip changing 1 files +5 −0
  1. gmaxwell commented at 5:15 PM on October 9, 2015: contributor

    There is usually no need for upnp when discovery is disabled directly or as as a result of manual address configuration.

    The user may still want it for hole punching but what few users who have manually configured IPs or disabling discovery but still need UPNP can probably find and enable it.

  2. Defaults UPNP to off when discovery is disabled.
    There is _usually_ no need for upnp when discovery is
     disabled directly or as as a result of manual address
     configuration.
    
    The user may still want it for hole punching but what
     few users who have manually configured IPs or disabling
     discovery but still need UPNP can probably find and
     enable it.
    247d706d1d
  3. laanwj added the label P2P on Oct 9, 2015
  4. btcdrak commented at 5:22 PM on October 9, 2015: contributor

    utACK

  5. laanwj commented at 6:41 PM on October 9, 2015: member

    utACK (though no longer needed if #6795 goes in)

  6. TheBlueMatt commented at 7:07 PM on October 9, 2015: member

    I really dont think discovery is sufficiently related here. NACK on this, but I think #6795 is fine.

  7. gmaxwell commented at 9:45 PM on October 9, 2015: contributor

    I agree that it's not needed if it defaults to off, but I'm curious as to why @bluematt thinks discovery isn't sufficiently related! I would think that a user manually setting externalip and/or discovery=0 almost (but not quite) guarantees that they do not need upnp on (and if they do-- they probably know that)

  8. TheBlueMatt commented at 9:56 PM on October 9, 2015: member

    UPnP isn't just about IP discovery? Indeed it's useful for that but we don't even really need that now, no? If it's not about discovery, then it's primarily about port mapping, and while I agree that many users who are paying enough attention to set their IP manually will also map their ports manually, I'm not sure we should make that assumption.

    On October 9, 2015 2:45:19 PM PDT, Gregory Maxwell notifications@github.com wrote:

    I agree that it's not needed if it defaults to off, but I'm curious as to why @bluematt thinks discovery isn't sufficiently related!


    Reply to this email directly or view it on GitHub: #6792 (comment)

  9. laanwj commented at 8:47 AM on October 10, 2015: member

    while I agree that many users who are paying enough attention to set their IP manually will also map their ports manually, I'm not sure we should make that assumption. @gmaxwell mentions that in the OP. This changes the default it does not force the setting. So in that (arguably rare) case people can do -upnp=1 to override the default.

  10. gmaxwell commented at 6:21 PM on October 13, 2015: contributor

    Not really needed post #6795

  11. gmaxwell closed this on Oct 13, 2015

  12. MarcoFalke 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-18 21:15 UTC

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