Skip to content

Commit 0c09e2f

Browse files
committed
--typos fixed, grammar and some messages fixed
1 parent 23bc6e7 commit 0c09e2f

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,22 @@ It requires **Python 3**. It was tested on **Python 3.7** and **3.8** using a **
1919

2020
**host** you need to specify the ip address or the hostname/fqdn of the **payShield** appliance.
2121

22-
**--port** specify the host port. If the parameter is omitted the default value **1500** is used.
22+
**--port** specify the host port, if the parameter is omitted the default value **1500** is used.
2323

24-
**--proto** specify the protocol to use, **tcp**, **udp** or **tls**. If the parameter is omitted the default value **tcp** is used.
25-
If **tls** is used you might specify the path of the client key file and the certificate using the parameters **--keyfile** and **--crtfile**
24+
**--proto** specify the protocol to use, **tcp**, **udp** or **tls**, if the parameter is omitted the default value **
25+
tcp** is used. If **tls** is used you might specify the path of the client key file and the certificate using the
26+
parameters **--keyfile** and **--crtfile**
2627

27-
**--keyfile** the path of the client key file. If is not specified the default value is **client.key**. It's only considered it the protocol is **tls**
28+
**--keyfile** the path of the client key file, if is not specified the default value is **client.key**. It's only
29+
considered if the protocol is **tls**
2830

29-
**--crtfile** the path of the client certificate file. If is not specified the default value is **client.crt**. It's only considered it the protocol is **tls**
31+
**--crtfile** the path of the client certificate file, if is not specified the default value is **client.crt**. It's
32+
only considered if the protocol is **tls**
3033

31-
**--key** the length of the RSA key that the appliance will generate. there are ony two valid values: **2048** or **4096**.
32-
if the parameter is not specified **2048** is the default.
34+
**--key** the length of the RSA key that the appliance will generate. There are only two valid values: **2048** or **
35+
4096**. If the parameter is not specified **2048** is the default.
3336

34-
**--header** the header string to prefix to the host command. if is not specified the default value is **HEAD**.
37+
**--header** the header string to prefix to the host command, if it is not specified the default value is **HEAD**.
3538

3639
**--nc** performs just an **NC** test. It cannot be used in conjunction with **--key**.
3740

@@ -54,13 +57,14 @@ if the parameter is not specified **2048** is the default.
5457
**--decode** decodes the response of the payShield if a decoder function is available for the command.
5558

5659
## Example
60+
5761
C:\Test>*python pressureTest.py 192.168.0.36 --nc --times 2*
5862

59-
PayShield stress utility, version 1.0, by Marco S. Zuppone - msz@msz.eu - https://msz.eu
60-
To get more info about the usage invoke it with the -h option
61-
This software is open source, and it is under the Affero AGPL 3.0
63+
PayShield stress utility, version 1.1.1, by Marco S. Zuppone - msz@msz.eu - https://msz.eu
64+
To get more info about the usage invoke it with the -h option This software is open source, and it is under the Affero
65+
AGPL 3.0 license
6266

63-
Iteration: 1 of 2
67+
Iteration: 1 of 2
6468

6569
Return code: 00 No error
6670
Command sent/received: NC ==> ND

pressureTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def run_test(ip_addr: str, port: int, host_command: str, proto: str = "tcp", hea
409409
if __name__ == "__main__":
410410
print("PayShield stress utility, version " + VERSION + ", by Marco S. Zuppone - msz@msz.eu - https://msz.eu")
411411
print("To get more info about the usage invoke it with the -h option")
412-
print("This software is open source and it is under the Affero AGPL 3.0")
412+
print("This software is open source and it is under the Affero AGPL 3.0 license")
413413
print("")
414414
KEY_IGNORED_MSG = "If this option is specified --key is ignored"
415415

0 commit comments

Comments
 (0)