File tree Expand file tree Collapse file tree 4 files changed +39
-3
lines changed Expand file tree Collapse file tree 4 files changed +39
-3
lines changed Original file line number Diff line number Diff line change
1
+ 2009-08-03 Tim Besard <tim-dot-besard-at-gmail-dot-com>
2
+
3
+ * proxy: more work on the proxy manager.
4
+
5
+
1
6
2009-08-09 Přemek Vyhnal <premysl.vyhnal gmail com>
2
7
3
8
* plugins: zSHARE added
Original file line number Diff line number Diff line change
1
+ # Sample proxy list for slimrat
2
+ #
3
+ # Should reside in ~/.slimrat/proxies when relying on automatic loading.
4
+
5
+ # The full proxy specification consists out of two parts:
6
+ # - the URI
7
+ # - the protocol specification
8
+ http://a.b.c.d:1234 http,ftp
9
+
10
+ # When the protocols are omitted, by default the "http" protocol is used
11
+ http://a.b.c.d:1234
12
+
13
+ # Similarly, when not specifying the type of proxy in the URI, slimrat
14
+ # will use it as an HTTP proxy
15
+ a.b.c.d:1234 http,ftp
16
+
17
+ # SOCKS is supported too (in combination with e.g. TOR), but needs
18
+ # the cpan module LWP::Protocol::socks
19
+ socks://localhost:9050 http,https
20
+
Original file line number Diff line number Diff line change
1
+ # Sample queue file for slimrat
2
+ #
3
+ # This file contains URLs to be loaded by command line parameter using the
4
+ # slimrat CLI client.
5
+
6
+ # An entry consists out of a single part: the URL
7
+ http://my-download.site.com/download/file_1.tar
8
+
Original file line number Diff line number Diff line change @@ -206,9 +206,12 @@ sub file_read() {
206
206
next if / ^\s *$ / ; # Skip blank lines
207
207
208
208
# Process a valid proxy
209
- if ($_ =~ m / ^\s *(\S +)\t (\S +)\s */ ) {
210
- my $link = $1 ;
211
- my $protocols_string = $2 ;
209
+ if ($_ =~ m / ^\s *(\S +)\t *(\S *)\s */ ) {
210
+ my $link = $1 ;
211
+ my $protocols_string = $2 || " http" ;
212
+ if ($link !~ m / ^\S +:\/\/ / ) {
213
+ $link = ' http://' . $link ;
214
+ }
212
215
my @protocols = [split (/ ,/ , $protocols_string )];
213
216
214
217
my $proxy = ProxyData-> new();
You can’t perform that action at this time.
0 commit comments