1. 21 Jul, 2020 1 commit
    • David Goulet's avatar
      relay: Automatically Enable an IPv6 ORPort · c3a0f757
      David Goulet authored
      This commit makes it that if the ORPort is set with a single port, it will
      bind to both global listen IPv4 and IPv6 addresses.
      
      To pin an "ORPort <PORT>" to be IPv4 or IPv6, the IPv4Only/IPv6Only flags are
      honored thus this will _only_ bind on IPv6 for that port value:
      
        ORPort 9050 IPv6Only
          Results in: [::]:9050
      
        ORPort 9051 IPv4Only
          Results in: [0.0.0.0]:9051
      
      Attempting to configure an explicit IPv4 address with IPv6Only flag is an
      error and vice versa.
      
      Closes #33246
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      c3a0f757
  2. 10 Jul, 2020 2 commits
  3. 30 Jun, 2020 1 commit
  4. 23 Jun, 2020 1 commit
  5. 20 Mar, 2020 2 commits
  6. 15 Jan, 2020 2 commits
  7. 08 Jan, 2020 1 commit
  8. 05 Nov, 2019 2 commits
    • teor's avatar
      config: Wrap a long line in relay_config.c · f10aa77a
      teor authored
      Part of 32213.
      f10aa77a
    • teor's avatar
      config: Rename new global functions with a prefix · cb8ebc0b
      teor authored
      This is an automated commit, generated by this command:
      
      ./scripts/maint/rename_c_identifier.py \
              get_dirportfrontpage relay_get_dirportfrontpage \
              parse_port_config port_parse_config \
              count_real_listeners port_count_real_listeners \
              parse_transport_line pt_parse_transport_line \
              ensure_bandwidth_cap config_ensure_bandwidth_cap \
              get_effective_bwrate relay_get_effective_bwrate \
              get_effective_bwburst relay_get_effective_bwburst \
              warn_nonlocal_ext_orports port_warn_nonlocal_ext_orports \
              parse_ports_relay port_parse_ports_relay \
              update_port_set_relay port_update_port_set_relay \
              get_transport_bindaddr_from_config pt_get_bindaddr_from_config \
              get_options_for_server_transport pt_get_options_for_server_transport
      
      It was generated with --no-verify, because it has some long lines.
      
      Part of 32213.
      cb8ebc0b
  9. 04 Nov, 2019 1 commit
  10. 31 Oct, 2019 6 commits
    • teor's avatar
      config: Move warn_nonlocal_ext_orports() to relay · 8036954b
      teor authored
      Part of 32213.
      8036954b
    • teor's avatar
      relay/config: Remove direct references to dirauth options · 23faa03f
      teor authored
      All *AuthoritativeDir* options are now accessed via the authmode
      functions in relay_config.c, relay/transport_config.c, and config.c.
      
      Part of 32213.
      23faa03f
    • teor's avatar
      config: Move relay config actions into the relay module · fc5da4ad
      teor authored
      This commit:
      * moves relay config actions into relay_config,
      * moves get_dirportfrontpage() into relay_config,
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled. (Some of the checks
      are re-ordered, so the order of some warnings may change.)
      
      Part of 32213.
      fc5da4ad
    • teor's avatar
      config: Move accounting/bandwidth config into the relay module · d5ca56e2
      teor authored
      This commit:
      * moves accounting and bandwidth checks into relay_config,
      * moves testing options checks into relay_config,
      * moves some other minor checks into relay_config,
      * exposes some code from src/app/config.c
        (we'll refactor it later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled. (Some of the checks
      are re-ordered, so the order of some warnings may change.)
      
      Part of 32213.
      d5ca56e2
    • teor's avatar
      config: Move relay config checks into the relay module · 093a127c
      teor authored
      This commit:
      * moves relay config checks into relay_config.[ch],
      * exposes some code from src/app/config.c
        (we'll refactor it later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled. (Some of the checks
      are re-ordered, so the order of some warnings may change.)
      
      Part of 32213.
      093a127c
    • teor's avatar
      config: Move relay port parsing into the relay module · 0722b4fd
      teor authored
      This commit:
      * creates feature/relay/relay_config.[ch],
      * moves relay port parsing into them,
      * exposes some code from src/app/config.c
        (we'll refactor it later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled.
      
      Part of 32213.
      0722b4fd