HomePhabricator

allow listening on -bind=address for blocked networks
c73323eec9fbUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

allow listening on -bind=address for blocked networks

  • this allows the client to listen on via -bind specified addresses (e.g. 127.0.0.1), even when a network (IPv4 in that case) was blocked via e.g -onlynet="Tor"
  • introduce enum BindFlags to avoid passing multiple bools to Bind()
  • make -bind help text clear we ALWAYS listen on the specified address
  • remove an unused variable
  • remove 2 unneeded IsLimited() checks before calling Bind(), which does these checks anyway
  • usage case: specify -bind=127.0.0.1 -onlynet="Tor" to allow incoming connections to a Tor hidden service, but still don't allow other IPv4 nodes to connect / get connected

Details

Provenance
Philip Kaufmann <phil.kaufmann@t-online.de>Authored on Sep 3 2012, 13:54
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGc7075c4b6556: Fix tests after cache tweaks
Branches
Unknown
Tags
Unknown

Event Timeline

Philip Kaufmann <phil.kaufmann@t-online.de> committed rSTAGINGc73323eec9fb: allow listening on -bind=address for blocked networks (authored by Philip Kaufmann <phil.kaufmann@t-online.de>).Nov 9 2012, 23:29