tor.cgi: Remember selected exit node country.

This commit is contained in:
Michael Tremer
2013-08-20 10:39:40 +02:00
parent 8e6a8fd5d3
commit e3c1704453

View File

@@ -321,7 +321,13 @@ END
foreach my $country_name (sort @country_names) {
my $country_code = Locale::Country::country2code($country_name);
$country_code = uc($country_code);
print "<option value='$country_code'>$country_name ($country_code)</option>\n";
print "<option value='$country_code'";
if ($settings{'TOR_EXIT_COUNTRY'} eq $country_code) {
print " selected";
}
print ">$country_name ($country_code)</option>\n";
}
print <<END;