Bump version.

This commit is contained in:
Eduard Tolosa 2020-10-06 22:27:21 -05:00
parent 7dc76e27de
commit e3a30a65e1
4 changed files with 10 additions and 7 deletions

2
Cargo.lock generated
View file

@ -116,7 +116,7 @@ dependencies = [
[[package]] [[package]]
name = "fhc" name = "fhc"
version = "0.3.0" version = "0.4.0"
dependencies = [ dependencies = [
"clap", "clap",
"futures", "futures",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "fhc" name = "fhc"
version = "0.3.0" version = "0.4.0"
authors = ["Eduard Tolosa <edu4rdshl@protonmail.com>"] authors = ["Eduard Tolosa <edu4rdshl@protonmail.com>"]
edition = "2018" edition = "2018"
description = "Fast HTTP Checker." description = "Fast HTTP Checker."

9
fhc.1
View file

@ -1,9 +1,9 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
.TH FHC "1" "October 2020" "FHC 0.3.0" "User Commands" .TH FHC "1" "October 2020" "FHC 0.4.0" "User Commands"
.SH NAME .SH NAME
FHC \- manual page for FHC 0.3.0 FHC \- manual page for FHC 0.4.0
.SH DESCRIPTION .SH DESCRIPTION
FHC 0.3.0 FHC 0.4.0
Eduard Tolosa <edu4rdshl@protonmail.com> Eduard Tolosa <edu4rdshl@protonmail.com>
Fast HTTP Checker. Fast HTTP Checker.
.SS "USAGE:" .SS "USAGE:"
@ -29,6 +29,9 @@ Show URLs with 500\-599 response codes only.
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR
Prints help information Prints help information
.TP .TP
\fB\-s\fR, \fB\-\-show\-codes\fR
Show status codes for discovered hosts.
.TP
\fB\-V\fR, \fB\-\-version\fR \fB\-V\fR, \fB\-\-version\fR
Prints version information Prints version information
.SS "OPTIONS:" .SS "OPTIONS:"

View file

@ -112,8 +112,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
futures::stream::iter(hosts.into_iter().map(|host| { futures::stream::iter(hosts.into_iter().map(|host| {
// HTTP/HTTP URLs // HTTP/HTTP URLs
let https_url = format!("https://{}/", host); let https_url = format!("https://{}", host);
let http_url = format!("http://{}/", host); let http_url = format!("http://{}", host);
// Create futures // Create futures
let https_send_fut = client.get(&https_url).send(); let https_send_fut = client.get(&https_url).send();
let http_send_fut = client.get(&http_url).send(); let http_send_fut = client.get(&http_url).send();