adding versioning
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
"""portspoof_py — asyncio Python rewrite of the portspoof TCP honeypot."""
|
||||
__version__ = '1.0.0'
|
||||
__version__ = '2603.1'
|
||||
|
||||
@@ -18,6 +18,7 @@ from pathlib import Path
|
||||
from typing import Optional, Tuple
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
|
||||
from . import __version__
|
||||
from .config import Config
|
||||
from .geo import country as _geo_country
|
||||
from .notifier import Notifier
|
||||
@@ -308,6 +309,7 @@ tr:hover td { background: #1c2128; }
|
||||
margin-left: 6px; vertical-align: middle;
|
||||
}
|
||||
.empty { color: #8b949e; font-style: italic; padding: 8px 0; }
|
||||
.footer { color: #484f58; font-size: 11px; margin-top: 24px; }
|
||||
.link-btn {
|
||||
background: none; border: none; color: #58a6ff; padding: 0;
|
||||
font-family: inherit; font-size: inherit; cursor: pointer;
|
||||
@@ -379,6 +381,7 @@ _HTML = """\
|
||||
{conn_rows}
|
||||
</table>
|
||||
</div>
|
||||
<p class="footer">portspoof-py v{version}</p>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
@@ -518,6 +521,7 @@ async def _render_dashboard(stats: Stats, cfg: Config) -> str:
|
||||
top_ports_rows=port_rows,
|
||||
recent_count=len(recent),
|
||||
conn_rows=conn_rows,
|
||||
version=__version__,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
|
||||
|
||||
[project]
|
||||
name = "portspoof-py"
|
||||
version = "1.0.0"
|
||||
version = "2603.1"
|
||||
description = "Python asyncio rewrite of the portspoof TCP honeypot"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
Reference in New Issue
Block a user