2 # Delete several SSL tunnels
4 require './stunnel-lib.pl';
6 &error_setup($text{'delete_err'});
7 @d = split(/\0/, $in{'d'});
8 @d || &error($text{'delete_enone'});
11 @stunnels = &list_stunnels();
12 foreach $d (sort { $b <=> $a } @d) {
14 &lock_file($st->{'file'});
15 if (&get_stunnel_version(\$dummy) >= 4) {
16 if ($st->{'args'} =~ /^(\S+)\s+(\S+)/) {
18 if ($cfile =~ /^\Q$module_config_directory\E\//) {
28 &webmin_log("delete", "stunnels", scalar(@d));