webos-tools / cli

command-line interface (CLI) for webOS
Apache License 2.0
17 stars 4 forks source link

allow localhost as ip address, fix valid port function #1

Closed ericblade closed 5 months ago

ericblade commented 5 months ago

Allow localhost for usage with WSL based devices, or anything else that might be tunnelled via localhost. 127.0.0.1 and localhost are NOT identical in all cases.

Allow ports from 1-65535, inclusive.

ericblade commented 5 months ago

Thank you!

nguyen-van-quang commented 5 months ago

Your code has been reflected in the main branch:

Thanks.