From d1908fe7763e427e9713c4683791b291c9f2194a Mon Sep 17 00:00:00 2001 From: qorg11 Date: Thu, 8 Oct 2020 13:49:19 +0200 Subject: [PATCH] Finally, you don't have to type https:// (or http://) in the --server feature. By default, this corrects the URL to https, so if your lainsafe instance is running in port 80 (Tor, or something) (altough is very possible you copypasted the onion address so it contains the http:// thing). That's a TODO. I'll fix it one of these days. --- doc/lainsafecli.1.gz | Bin 0 -> 1092 bytes lainsafecli | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 doc/lainsafecli.1.gz diff --git a/doc/lainsafecli.1.gz b/doc/lainsafecli.1.gz new file mode 100644 index 0000000000000000000000000000000000000000..0a8294cfddcd33894483f195c9d2095e74650bfc GIT binary patch literal 1092 zcmV-K1iSkmiwFqmC_i5S18iYwZgXK~Wn*kuvM zY{UF3iBQKjEM-Hm4goDwG7*YYNy?7)*Y`+DjvN&JAd4dJ-h21%7=68fdnzkhFvyh# zLAf+EXPMv;iPF3N0t`u%+`)2uKPUa=uU9ZtWl7}@1eXlBv`ptTJCEqkCXdV2I*F71 zc@o9s->WOb^nvL=!s9=ZbHRu|Gn*&VO}tLy)e;xtJ|a?ALeZT83T{7Gh5rhEVDhvJ zLcj>pJvZ$Ol(ZpR{8X`w=bY`}$n75Np1JrP6p{;CL=fj^ix@;I8{51K~+?$R>YOpFCk}K5@t=v6l6j95SgP4 z+(Mt}TPE;BCT;XR6BU_pQwiF*(imP=NX#um$&7Jcb7o;L+?tj?6-Kr7XyCZ#*`BnZ z&NJnR>1{niE!yN(Y4Ttg@=}42cZg@{EYhaa>|4z>Gw#gdpY>?8*2=0(iP6ZY?AZ`J zxn-Uh6#^4035}{Xm(wT>M@!HM6yr2#!i%S}T3| zW`9t&q|fZEr7Dg6>jSmM_Q}x?83yt-L?KX1ETF0_)~Y!h2HZH5N2Q-pgr9=>rmN*m zeEYB&haSe*8Xcg0hMX6*rk10?2P$gj-2b-A{ZzUB6iWPV7ANb)`0;6+Oyk&-)-{9o zW7&YL%PmshBCf%QONedYxC>r%O87&V+XgEIWk{!0n;}V8oB7isUVcfs_?Ksc&_^{` zBj$xdd{{ha zRywscOzNQRX+~_dI%2^Qxc9Y^qCqQG6_X|mH9s0&r=d5Q%-rxuvEh_(uEo3&-U82z zm|BN-AG}n%It()JTWl*mF3=I9k&jCJsA^3cTEcmxU2>MG4Z?Tlvx>_1!w;V4U7D`p z)9@O69|qwa{LrA@U9b9a*T~q5yzrNaL)B402G|Nd1y)u$SCQ9mlLmGyr?s%XtDvqb zrE%ufm227IU~oS%K~z6U9s2F7EB$2a-Cq+JFK5oZaAe!lz0!7_$If0dhPP2yNIx>% zxpr2eDp;-P6_874nC;-BkxFh)Ay3=agent("Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"); +# modify url if necessary +substr($DEFAULT_SERVER, 0, 0, 'https://') unless $DEFAULT_SERVER =~ /^(http|https):\/\//; # check if server is running lainsafe +my $url_to_upload = $DEFAULT_SERVER . "/upload.cgi"; if (!$ua->get($url_to_upload)->is_success) { print "$url_to_upload is not running lainsafe. (--get-response to check the error)\n"; print $ua->get($url_to_upload)->decoded_content if $get_response;