|
@@ -206,9 +206,9 @@ class LocalNodeBuilder(NodeBuilder):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
+
|
|
-
|
|
+
|
|
-
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -461,8 +461,14 @@ class LocalNodeBuilder(NodeBuilder):
|
|
|
|
|
|
authlines = ""
|
|
authlines = ""
|
|
for authopt in options:
|
|
for authopt in options:
|
|
- authlines += "%s %s orport=%s %s %s:%s %s\n" % (
|
|
+ authlines += "%s %s orport=%s" % (
|
|
- authopt, self._env['nick'], self._env['orport'],
|
|
+ authopt, self._env['nick'], self._env['orport'])
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if self._env['ipv6_addr'] is not None:
|
|
|
|
+ authlines += " ipv6=%s:%s" % (self._env['ipv6_addr'],
|
|
|
|
+ self._env['orport'])
|
|
|
|
+ authlines += " %s %s:%s %s\n" % (
|
|
self._env['dirserver_flags'], self._env['ip'],
|
|
self._env['dirserver_flags'], self._env['ip'],
|
|
self._env['dirport'], self._env['fingerprint'])
|
|
self._env['dirport'], self._env['fingerprint'])
|
|
return authlines
|
|
return authlines
|
|
@@ -675,7 +681,9 @@ DEFAULTS = {
|
|
'tor-gencert': os.environ.get('CHUTNEY_TOR_GENCERT', None),
|
|
'tor-gencert': os.environ.get('CHUTNEY_TOR_GENCERT', None),
|
|
'auth_cert_lifetime': 12,
|
|
'auth_cert_lifetime': 12,
|
|
'ip': os.environ.get('CHUTNEY_LISTEN_ADDRESS', '127.0.0.1'),
|
|
'ip': os.environ.get('CHUTNEY_LISTEN_ADDRESS', '127.0.0.1'),
|
|
- 'ipv6_addr': None,
|
|
+
|
|
|
|
+
|
|
|
|
+ 'ipv6_addr': os.environ.get('CHUTNEY_LISTEN_ADDRESS_V6', None),
|
|
'dirserver_flags': 'no-v2',
|
|
'dirserver_flags': 'no-v2',
|
|
'chutney_dir': '.',
|
|
'chutney_dir': '.',
|
|
'torrc_fname': '${dir}/torrc',
|
|
'torrc_fname': '${dir}/torrc',
|