- Convert IPv4/IPv6 string to number.
- Conver number to IPv4/IPv6.
- Go 1.21
- Clone the repository:
git clone https://github.com/gilsllendo/net-tls.git
cd net-tls
- Install dependencies:
go mod tidy
- Build the project:
make build
To convert IP to number a user must provider a appropriate flag and valid IP addres. For example, to convert IPv4 the user have to pass -4 flag or -6 for IPv6:
net-tls aton -4 10.0.0.0
net-tls aton -6 ::1
To convert a number to a valid IP address a user have to pass correct flag (define which IP version should number be converted) and number value:
net-tls ntoa -4 1643254
net-tls ntoa -6 3421312412344213
This project is licensed under the MIT License. See the LICENSE file for details.