Skip to content

Commit 312ba34

Browse files
authored
fix nc command with -u flag
1 parent d13472a commit 312ba34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ if __name__ == "__main__":
166166
And test it with:
167167
168168
```shell
169-
$ echo "AAAAAA" | nc xx.xx.xx.xx 12345
169+
$ echo "AAAAAA" | nc -w 3 -u xx.xx.xx.xx 12345
170170
Received your message: AAAAAA
171171
```
172172
173173
You should test large messages:
174174
175175
```shell
176-
$ python3 -c 'print("A"*2000)' | nc xx.xx.xx.xx 12345
176+
$ python3 -c 'print("A"*2000)' | nc -w 3 -u xx.xx.xx.xx 12345
177177
Received your message: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA....
178178
```
179179

0 commit comments

Comments
 (0)