Publish reviewed history-free open-source snapshot (2026-10-12)

This commit is contained in:
Zonghengjia Open Source
2026-10-11 23:23:20 +00:00
commit 901f27baf5
301 changed files with 32378 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
namespace UCVL.VPNPlus;
// Presentation only. A selected name or a ping response never establishes a connection.
internal static class NodePresentation
{
internal const string JinanSlug = "jinan-private-aux";
internal const string JinanName = "优创未来·济南办(Zero3)";
internal static string Name(string slug, string? serverName, bool privateAuxiliary) =>
!string.IsNullOrWhiteSpace(serverName) ? serverName
: privateAuxiliary && slug == JinanSlug ? JinanName : slug;
// Transport is a property of the established connection, not another node.
// Keep the undecorated server name separately so fallback never parses UI text.
internal static string WithTransport(string nodeName, bool usesTailnet) =>
usesTailnet ? $"{nodeName} + Tailscale" : nodeName;
internal static string LearningDetail(bool connected, string? actualNodeName, string message) =>
connected && !string.IsNullOrWhiteSpace(actualNodeName) ? $"{actualNodeName} · {message}" : message;
}