Amnezia-style SSH server connect with verify, ping and server_info

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
test2
2026-07-25 21:30:43 +03:00
co-authored by Cursor
parent 088f02cdbe
commit 321a5b2504
9 changed files with 334 additions and 40 deletions
+3
View File
@@ -47,6 +47,9 @@ class VpnServer(Base):
ssh_username: Mapped[str | None] = mapped_column(String(128), nullable=True)
ssh_password: Mapped[str | None] = mapped_column(Text, nullable=True)
ssh_private_key: Mapped[str | None] = mapped_column(Text, nullable=True)
ssh_server_info: Mapped[str | None] = mapped_column(Text, nullable=True)
ssh_reachable: Mapped[bool] = mapped_column(Boolean, default=False)
ssh_last_checked: Mapped[datetime | None] = mapped_column(DateTime(timezone=True), nullable=True)
# AmneziaWG 2.0 obfuscation params (ignored for plain WireGuard)
jc: Mapped[int | None] = mapped_column(Integer, nullable=True)
jmin: Mapped[int | None] = mapped_column(Integer, nullable=True)