Skip to content

Commit 5d3e219

Browse files
authored
Merge pull request #74 from Tweak4141/master
Updated grammar and fixed spelling in README, as well as fixed spelling and grammar in the controller file.
2 parents b8a2b4d + f024346 commit 5d3e219

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ compatible (standard) web browser.
1414

1515
Compiled binaries can be found at the [release] section of the page.
1616

17-
Please be advised that those binaries is generated by an automatic proccess,
18-
the author of this project will NOT verify them. You have to try it at your owk
17+
Please be advised that those binaries are generated by an automatic proccess,
18+
the author of this project will NOT verify that they work. You will have to try it at your own
1919
risk.
2020

2121
[release]: https://github.com/nirui/sshwifty/releases
2222

2323
### Docker Image
2424

25-
If [Docker] is installed on your machine, you may use our prebuild Docker Image
25+
If [Docker] is installed on your machine, you may use our prebuilt Docker Image
2626
by executing following command:
2727

2828
```
@@ -49,15 +49,15 @@ $ docker run --detach \
4949
niruix/sshwifty:latest
5050
```
5151

52-
The `domain.crt` and `domain.key` must be valid TLS certificate and key file
52+
The `domain.crt` and `domain.key` must be a valid TLS certificate and key file
5353
located on the same machine which the `docker run` command will be executed
5454
upon.
5555

5656
[docker]: https://www.docker.com
5757

5858
### Compile from source code (Recommanded if you're a developer)
5959

60-
Following tools is required in order to build the software from source code:
60+
The following tools are required in order to build the software from source code:
6161

6262
- `git` to download the source code
6363
- `node` and `npm` to build front-end application
@@ -72,11 +72,11 @@ $ npm install
7272
$ npm run build
7373
```
7474

75-
When done, you can found the newly generated `sshwifty` binary inside current
75+
When done, you can found the newly generated `sshwifty` binary inside the current
7676
working directory.
7777

7878
Notice: `Dockerfile` contains the entire build procedure of this software.
79-
Please refer to it when you encountered any compile/build related issue.
79+
Please refer to it when you encounter any compile/build related issue.
8080

8181
### Deploy on the cloud
8282

@@ -316,13 +316,13 @@ SSHWIFTY_PRESETS
316316
SSHWIFTY_ONLYALLOWPRESETREMOTES
317317
```
318318

319-
The option they represented is corresponded to their counterparts in the
319+
The options they represent correspond to their counterparts in the
320320
configuration file.
321321

322322
Notice: When you're using environment variables to configure Sshwifty, only one
323323
Sshwifty HTTP server is then allowed. There is no way to setup mulitple servers
324324
under this method of configuration. If you need to serve on multiple ports, use
325-
configuration file instead.
325+
the configuration file instead.
326326

327327
Be aware: An invalid value inside following environment variables will cause
328328
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
407407
enter _maintaining_ state, which includes doing bug fix and security updates.
408408
_Adding new features however, is not a part of the state_.
409409

410-
Please do not send pull request. If you need new feature, fork it, add it by
410+
Please do not send any pull requests. If you need new feature, fork it, add it by
411411
yourself, and maintain it like one of your own project.
412412

413413
(Notice: Typo, grammar error or invalid use of language in the source code and

application/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
6363

6464
if h.commonCfg.HostName != hostPort &&
6565
!strings.HasPrefix(hostPort, h.hostNameChecker) {
66-
clientLogger.Warning("Request invalid host \"%s\", deined",
66+
clientLogger.Warning("Requested invalid host \"%s\", denied access",
6767
r.Host)
6868

6969
serveFailure(

0 commit comments

Comments
 (0)