adding versioning

This commit is contained in:
2026-03-11 19:07:24 -04:00
parent 88758d7f44
commit c2624d165a
3 changed files with 6 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
"""portspoof_py — asyncio Python rewrite of the portspoof TCP honeypot.""" """portspoof_py — asyncio Python rewrite of the portspoof TCP honeypot."""
__version__ = '1.0.0' __version__ = '2603.1'

View File

@@ -18,6 +18,7 @@ from pathlib import Path
from typing import Optional, Tuple from typing import Optional, Tuple
from urllib.parse import parse_qs, urlparse from urllib.parse import parse_qs, urlparse
from . import __version__
from .config import Config from .config import Config
from .geo import country as _geo_country from .geo import country as _geo_country
from .notifier import Notifier from .notifier import Notifier
@@ -308,6 +309,7 @@ tr:hover td { background: #1c2128; }
margin-left: 6px; vertical-align: middle; margin-left: 6px; vertical-align: middle;
} }
.empty { color: #8b949e; font-style: italic; padding: 8px 0; } .empty { color: #8b949e; font-style: italic; padding: 8px 0; }
.footer { color: #484f58; font-size: 11px; margin-top: 24px; }
.link-btn { .link-btn {
background: none; border: none; color: #58a6ff; padding: 0; background: none; border: none; color: #58a6ff; padding: 0;
font-family: inherit; font-size: inherit; cursor: pointer; font-family: inherit; font-size: inherit; cursor: pointer;
@@ -379,6 +381,7 @@ _HTML = """\
{conn_rows} {conn_rows}
</table> </table>
</div> </div>
<p class="footer">portspoof-py v{version}</p>
</body> </body>
</html> </html>
""" """
@@ -518,6 +521,7 @@ async def _render_dashboard(stats: Stats, cfg: Config) -> str:
top_ports_rows=port_rows, top_ports_rows=port_rows,
recent_count=len(recent), recent_count=len(recent),
conn_rows=conn_rows, conn_rows=conn_rows,
version=__version__,
) )

View File

@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
[project] [project]
name = "portspoof-py" name = "portspoof-py"
version = "1.0.0" version = "2603.1"
description = "Python asyncio rewrite of the portspoof TCP honeypot" description = "Python asyncio rewrite of the portspoof TCP honeypot"
readme = "README.md" readme = "README.md"
requires-python = ">=3.11" requires-python = ">=3.11"