Bug fix: jeb_utils.utils.is_valid_host returned None instead of False if the host is not valid

This commit is contained in:
2026-04-04 16:28:27 +02:00
parent 5abaa71b27
commit f3dd768446
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -77,6 +77,9 @@ pip install jeb-utils --index-url https://repo.jcloud-services.ddns.net/simple/
- `create_file_if_not_exists`: Creates a file if it does not exist.
## Changelog
### Version 0.3.2
- Bug fix: `jeb_utils.utils.is_valid_host` returned `None` instead of `False` if the host is not valid
### Version 0.3.1
- Fatal bug fix: `typing.Union` in `jeb_utils.utils` was used but not imported
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "jeb-utils"
version = "0.3.1"
version = "0.3.2"
description = "Common utils for JEB client and server."
dependencies = ["cryptography"]
license = "Apache-2.0"
+1 -1
View File
@@ -176,7 +176,7 @@ def is_valid_host(host: str) -> bool:
ipaddress.ip_address(host)
return True
except ValueError:
pass
return False
def is_valid_port(port: str) -> bool:
'''