diff --git a/bin/psyconf b/bin/psyconf index a518366..1084f0e 100755 --- a/bin/psyconf +++ b/bin/psyconf @@ -219,7 +219,8 @@ X close O; chmod 0644, $t; - my $ports="$c{_protocols_port_PSYC} $c{_protocols_port_jabber_S2S} $c{_protocols_port_applet} $c{_protocols_port_telnet} $c{_protocols_port_HTTP} $c{_protocols_port_IRC} $c{_protocols_port_jabber_clients} $c{_protocols_port_SMTP} $c{_protocols_port_NNTP} $c{_protocols_port_SPYC}"; + my $ports=""; + $ports .= "$c{_protocols_port_PSYC} $c{_protocols_port_jabber_S2S} $c{_protocols_port_applet} $c{_protocols_port_telnet} $c{_protocols_port_HTTP} $c{_protocols_port_IRC} $c{_protocols_port_jabber_clients} $c{_protocols_port_SMTP} $c{_protocols_port_NNTP} $c{_protocols_port_SPYC}" if $c{_protocols_use_encryption} ne 'only'; $ports .= " $c{_protocols_port_PSYC_encrypted} $c{_protocols_port_telnet_encrypted} $c{_protocols_port_HTTP_encrypted} $c{_protocols_port_IRC_encrypted} $c{_protocols_port_jabber_clients_encrypted} $c{_protocols_port_SMTP_encrypted} $c{_protocols_port_NNTP_encrypted}" if $c{_protocols_use_encryption}; my @adm; @@ -382,6 +383,9 @@ provided together as the driver won't figure out the proper name for the IP number or vice versa. Please re-edit the psyced.ini to provide all variables. X + undef $c{_protocols_use_encryption} + if $c{_protocols_use_encryption} eq 'no'; + if ($c{_protocols_use_encryption}) { my $t = $c{_basic_path_PEM_key}; if ($t) { @@ -657,6 +661,49 @@ X } } +# TORRC + $t = "$base/etc/tor"; + mkdir($t); + $t = "$base/var"; + mkdir($t); + $t = "$base/var/tor"; + mkdir($t); + $t = "$base/etc/tor/torrc"; + say "Generating control file $t ..\n"; + rename $t, "$t~"; + open O, '>', $t or die "Cannot write to $t"; + + print O <