1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

bump version to beta-21

This commit is contained in:
checktheroads
2020-04-13 02:26:12 -07:00
parent 2fca563a33
commit 1c9aee4608
5 changed files with 15 additions and 5 deletions

View File

@@ -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"

View File

@@ -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,
)

View File

@@ -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)}]"
except ValueError:
pass
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

View File

@@ -2,7 +2,7 @@
set -e
HYPERGLASS_VERSION="1.0.0b20"
HYPERGLASS_VERSION="1.0.0b21"
MIN_PYTHON_MAJOR="3"
MIN_PYTHON_MINOR="6"

View File

@@ -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"