mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
1a9cbc5bb4
Now port_cfg_new() returns all default flags and port_parse_config() acts on defaults returned by port_cfg_new() that is uses the default port_cfg_t object returned by port_cfg_new() and modifies them later according to the port specifications in configuration files Might close tor#32994.
9 lines
366 B
Plaintext
9 lines
366 B
Plaintext
o Code simplification and refactoring:
|
|
- port_new_cfg() returns default object with reasonable values.
|
|
- port_parse_config() uses this default object instead of
|
|
temporary variables.
|
|
- Files changed -> src/app/config/config.c
|
|
- Functions changed -> port_new_cfg() and port_parse_config()
|
|
- Closes ticket 32994.
|
|
- Patch by MrSquanchee
|