]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Allow IPv4 traffic on default and old-style-config SocksPorts.
authorNick Mathewson <nickm@torproject.org>
Fri, 16 Nov 2012 03:49:43 +0000 (22:49 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Nov 2012 03:49:43 +0000 (22:49 -0500)
Looks like when i was writing the code to set the ipv4_traffic flag on
port_cfg_t, I missed some cases, such as the one where the port was
set from its default value.

Fix for 7493. Bug not in any released Tor.

src/or/config.c

index e069c7c528b579a2329f761a2c91a75532a8fe3c..f7a803fd2835705fc707bc506789a0f38fcc3114 100644 (file)
@@ -4543,6 +4543,7 @@ parse_port_config(smartlist_t *out,
       tor_addr_make_unspec(&cfg->addr); /* Server ports default to 0.0.0.0 */
       cfg->no_listen = 1;
       cfg->bind_ipv4_only = 1;
+      cfg->ipv4_traffic = 1;
       smartlist_add(out, cfg);
     }
 
@@ -4562,6 +4563,7 @@ parse_port_config(smartlist_t *out,
         cfg->session_group = SESSION_GROUP_UNSET;
         cfg->isolation_flags = ISO_DEFAULT;
         cfg->no_advertise = 1;
+        cfg->ipv4_traffic = 1;
         smartlist_add(out, cfg);
       }
     }
@@ -4585,6 +4587,7 @@ parse_port_config(smartlist_t *out,
        tor_addr_parse(&cfg->addr, defaultaddr);
        cfg->session_group = SESSION_GROUP_UNSET;
        cfg->isolation_flags = ISO_DEFAULT;
+       cfg->ipv4_traffic = 1;
        smartlist_add(out, cfg);
     }
     return 0;