]> git.ipfire.org Git - thirdparty/tor.git/commit
Refactor port_cfg_t creation into a port_cfg_new() function
authorNick Mathewson <nickm@torproject.org>
Sun, 25 Nov 2012 19:57:10 +0000 (14:57 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2012 19:50:03 +0000 (14:50 -0500)
commit7315a6764675ca2a148554488504f5abf98ff7e6
treee43592466f9e39596a5fbf3e26202229d55c75f1
parent522e90d6610da3ca809c842b452c56ecab5d501b
Refactor port_cfg_t creation into a port_cfg_new() function

This function gives us a single place to set reasonable default flags
for port_cfg_t entries, to avoid bugs like the one where we weren't
setting ipv4_traffic_ok to 1 on SocksPorts initialized in an older
way.
src/or/config.c