forked from mirrors/thatmattlove-hyperglass
bump version to beta-21
This commit is contained in:
parent
2fca563a33
commit
1c9aee4608
5 changed files with 15 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ import sys
|
|||
from datetime import datetime
|
||||
|
||||
__name__ = "hyperglass"
|
||||
__version__ = "1.0.0-beta.20"
|
||||
__version__ = "1.0.0-beta.21"
|
||||
__author__ = "Matt Love"
|
||||
__copyright__ = f"Copyright {datetime.now().year} Matthew Love"
|
||||
__license__ = "BSD 3-Clause Clear License"
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ def on_starting(server: Arbiter):
|
|||
log.success(
|
||||
"Started hyperglass {v} on http://{h}:{p} with {w} workers",
|
||||
v=__version__,
|
||||
h=str(params.listen_address),
|
||||
h=format_listen_address(params.listen_address),
|
||||
p=str(params.listen_port),
|
||||
w=server.app.cfg.settings["workers"].value,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -631,15 +631,25 @@ def format_listen_address(listen_address):
|
|||
"""
|
||||
from ipaddress import ip_address, IPv4Address, IPv6Address
|
||||
|
||||
if not isinstance(listen_address, (IPv4Address, IPv6Address)):
|
||||
if isinstance(listen_address, str):
|
||||
try:
|
||||
listen_address = ip_address(listen_address)
|
||||
if listen_address.version == 6:
|
||||
listen_address = f"[{str(listen_address)}]"
|
||||
else:
|
||||
listen_address = str(listen_address)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
elif isinstance(listen_address, (IPv4Address, IPv6Address)):
|
||||
if listen_address.version == 6:
|
||||
listen_address = f"[{str(listen_address)}]"
|
||||
else:
|
||||
listen_address = str(listen_address)
|
||||
|
||||
else:
|
||||
listen_address = str(listen_address)
|
||||
|
||||
return listen_address
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
HYPERGLASS_VERSION="1.0.0b20"
|
||||
HYPERGLASS_VERSION="1.0.0b21"
|
||||
|
||||
MIN_PYTHON_MAJOR="3"
|
||||
MIN_PYTHON_MINOR="6"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
|
|||
|
||||
[tool.poetry]
|
||||
name = "hyperglass"
|
||||
version = "1.0.0-beta.20"
|
||||
version = "1.0.0-beta.21"
|
||||
description = "hyperglass is the modern network looking glass that tries to make the internet better."
|
||||
authors = ["Matt Love <matt@hyperglass.io>"]
|
||||
readme = "README.md"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue