From 55da2657322f8d66cdea60a74e90731738d6d5dc Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 1 Feb 2022 21:56:21 -0700 Subject: [PATCH 1/4] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 86ceac4..0379476 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,14 @@ compatible (standard) web browser. Compiled binaries can be found at the [release] section of the page. Please be advised that those binaries is generated by an automatic proccess, -the author of this project will NOT verify them. You have to try it at your owk +the author of this project will NOT verify them. You have to try it at your own risk. [release]: https://github.com/nirui/sshwifty/releases ### Docker Image -If [Docker] is installed on your machine, you may use our prebuild Docker Image +If [Docker] is installed on your machine, you may use our prebuilt Docker Image by executing following command: ``` @@ -49,7 +49,7 @@ $ docker run --detach \ niruix/sshwifty:latest ``` -The `domain.crt` and `domain.key` must be valid TLS certificate and key file +The `domain.crt` and `domain.key` must be a valid TLS certificate and key file located on the same machine which the `docker run` command will be executed upon. @@ -57,7 +57,7 @@ upon. ### Compile from source code (Recommanded if you're a developer) -Following tools is required in order to build the software from source code: +The following tools are required in order to build the software from source code: - `git` to download the source code - `node` and `npm` to build front-end application @@ -72,11 +72,11 @@ $ npm install $ npm run build ``` -When done, you can found the newly generated `sshwifty` binary inside current +When done, you can found the newly generated `sshwifty` binary inside the current working directory. Notice: `Dockerfile` contains the entire build procedure of this software. -Please refer to it when you encountered any compile/build related issue. +Please refer to it when you encounter any compile/build related issue. ### Deploy on the cloud @@ -316,13 +316,13 @@ SSHWIFTY_PRESETS SSHWIFTY_ONLYALLOWPRESETREMOTES ``` -The option they represented is corresponded to their counterparts in the +The options they represent correspond to their counterparts in the configuration file. Notice: When you're using environment variables to configure Sshwifty, only one Sshwifty HTTP server is then allowed. There is no way to setup mulitple servers under this method of configuration. If you need to serve on multiple ports, use -configuration file instead. +the configuration file instead. Be aware: An invalid value inside following environment variables will cause the value to be sliently reset to default during configuration parsing phase @@ -407,7 +407,7 @@ Upon release (Which is then you're able to read this file), this project will enter _maintaining_ state, which includes doing bug fix and security updates. _Adding new features however, is not a part of the state_. -Please do not send pull request. If you need new feature, fork it, add it by +Please do not send any pull requests. If you need new feature, fork it, add it by yourself, and maintain it like one of your own project. (Notice: Typo, grammar error or invalid use of language in the source code and From e767c088cd7c48a4cb6a14a69c7fc606aeff0a8c Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 1 Feb 2022 21:57:08 -0700 Subject: [PATCH 2/4] Update controller.go --- application/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controller/controller.go b/application/controller/controller.go index 89e150d..25a46d9 100644 --- a/application/controller/controller.go +++ b/application/controller/controller.go @@ -63,7 +63,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if h.commonCfg.HostName != hostPort && !strings.HasPrefix(hostPort, h.hostNameChecker) { - clientLogger.Warning("Request invalid host \"%s\", deined", + clientLogger.Warning("Requested invalid host \"%s\", denied access", r.Host) serveFailure( From e3e4bb068af9de12b8b394f5e83d89601a7d281c Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 1 Feb 2022 21:58:59 -0700 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0379476..069063d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ compatible (standard) web browser. Compiled binaries can be found at the [release] section of the page. Please be advised that those binaries is generated by an automatic proccess, -the author of this project will NOT verify them. You have to try it at your own +the author of this project will NOT verify them. You will have to try it at your own risk. [release]: https://github.com/nirui/sshwifty/releases From f024346d4f8574248502fd7a891a549c57b91949 Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 1 Feb 2022 22:02:13 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 069063d..493cd5b 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ compatible (standard) web browser. Compiled binaries can be found at the [release] section of the page. -Please be advised that those binaries is generated by an automatic proccess, -the author of this project will NOT verify them. You will have to try it at your own +Please be advised that those binaries are generated by an automatic proccess, +the author of this project will NOT verify that they work. You will have to try it at your own risk. [release]: https://github.com/nirui/sshwifty/releases