(ip)
| 60 | |
| 61 | # Validate IP |
| 62 | def validate_ip(ip): |
| 63 | parts = ip.split('.') |
| 64 | return len(parts) == 4 and all(x.isdigit() for x in parts) and all(0 <= int(x) <= 255 for x in parts) |
| 65 | |
| 66 | # Validate Port |
| 67 | def validate_port(port, rand=False): |
no outgoing calls
no test coverage detected