Fix tests and logic.
authorfunilrys <redacted>
Wed, 6 Sep 2023 19:52:52 +0000 (21:52 +0200)
committerfunilrys <redacted>
Wed, 6 Sep 2023 19:57:22 +0000 (21:57 +0200)
commit65ebac6bf8e54d1f12cfa9ffdf02e8ef372d1c2f
tree03296544b4bf0955bb5aa583ad1006fa0fff0e61
parent272659110cd0569bc85026316d8fcbdafa6c1a99
Fix tests and logic.

Indeed, from on:
  1. We strip out IPs.
  2. We strip out "potential" INVALID that:
     - doesn't contains dots
     - contains at least 2 consecutive dots
     - looks like an IP.

From now on an acceptable subject shall:
  1. have at least 1 dot.
  2. NOT be an IPv4 or IPv6
  3. NOT look like an IP. (Example: 258.300.10.3)
testUpdateHostsFile.py
updateHostsFile.py
git clone https://git.99rst.org/PROJECT