Commit 585becb
Add IP address validation in command-line parsing
- Added isValidIPAddress() function to validate IPv4/IPv6 addresses
- Validation uses inet_pton() to check address format before passing to Server
- Provides clear error message for invalid addresses at command-line parsing stage
- Addresses code review feedback to validate user input early
Co-authored-by: rdementi <25432609+rdementi@users.noreply.github.com>1 parent f8294c1 commit 585becb
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3922 | 3922 | | |
3923 | 3923 | | |
3924 | 3924 | | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
3925 | 3946 | | |
3926 | 3947 | | |
3927 | 3948 | | |
| |||
4014 | 4035 | | |
4015 | 4036 | | |
4016 | 4037 | | |
| 4038 | + | |
| 4039 | + | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
4017 | 4043 | | |
4018 | 4044 | | |
4019 | 4045 | | |
| |||
0 commit comments