python-ipy icon indicating copy to clipboard operation
python-ipy copied to clipboard

verifying IP(input)

Open andvas0576 opened this issue 3 years ago • 0 comments

To whom it may concern,

when accepting input if number > 255 and no "." follows, instead of going through an error or filling empty spaces with "0". instead it accepts the input. as shown in the example below.

input_issues

Is the code supposed to behave this way, something I may be omitting for how IP address works? Or is there something I may be doing wrong, down below is how I accept input from users.

read_input

for retrieving the input I just use a return statement of the user_ip variable.

Thanks in advance! looking forward to learn more about this module.

andvas0576 avatar Jun 30 '22 02:06 andvas0576