kursatkobya / libfrizz

libfrizz is a computer software project providing a lightweight library and command-line tool for transferring data
GNU General Public License v3.0
0 stars 1 forks source link

-p option act weirdly with bigger values #41

Closed kursatkobya closed 2 years ago

kursatkobya commented 2 years ago

Describe the bug -p option takes normally 2 u16 value and works well but i have seen some fishy bug when the latter number is huge

To Reproduce Steps to reproduce the behavior: check the behavioral difference of these two ./target/debug/frizz -s -t sourtimes.org --timeout 3 -c 1024 -p 80 1024 ./target/debug/frizz -s -t sourtimes.org --timeout 3 -c 1024 -p 80 10000

after 1097 it seems listing all ports

Expected behavior Dunno if this is expected, check and fix if it is not

Screenshots

./target/debug/frizz -s -t sourtimes.org --timeout 3 -c 1024 -p 80 1100                                                                            kursat@kursat
ip addr 176.53.43.30
80
443
1097
1098
1099
1100

Desktop (please complete the following information):