diff options
author | vnugent <public@vaughnnugent.com> | 2024-08-17 22:36:20 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-08-17 22:36:20 -0400 |
commit | 3ad2db886f8c002248249a69c205d05cea0a5cc2 (patch) | |
tree | 7730439d437ec4812286310a273d0eba579cd66d /back-end/src/SimpleBookmarkEntry.cs | |
parent | ac67c472f9f70cc60e749283a9a6fc32e5f65fe6 (diff) | |
parent | d388c7757010156bd79d4c2fb3cc812c91a4683d (diff) |
Merge branch 'next' into widget
Diffstat (limited to 'back-end/src/SimpleBookmarkEntry.cs')
-rw-r--r-- | back-end/src/SimpleBookmarkEntry.cs | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/back-end/src/SimpleBookmarkEntry.cs b/back-end/src/SimpleBookmarkEntry.cs index 27813d7..85a52d3 100644 --- a/back-end/src/SimpleBookmarkEntry.cs +++ b/back-end/src/SimpleBookmarkEntry.cs @@ -22,9 +22,6 @@ */ using System; -using System.Linq; -using System.Text; -using System.Text.Json; using VNLib.Plugins; using VNLib.Utils.Logging; @@ -77,7 +74,7 @@ namespace SimpleBookmark @" ****************************************************************************** Simple-Bookmark - A linkding inspired, self hosted, bookmark manager - By Vaughn Nugent - vnpublic @proton.me + By Vaughn Nugent - vnpublic@proton.me https://www.vaughnnugent.com/resources/software License: GNU Affero General Public License v3.0 This application comes with ABSOLUTELY NO WARRANTY. @@ -85,27 +82,10 @@ namespace SimpleBookmark Documentation: https://www.vaughnnugent.com/resources/software/articles?tags=docs,_simple-bookmark GitHub: https://github.com/VnUgE/simple-bookmark {warning} - Your server is now running at the following locations:{0} -******************************************************************************"; - - string[] interfaces = HostConfig.GetProperty("virtual_hosts") - .EnumerateArray() - .Select(e => - { - JsonElement el = e.GetProperty("interface"); - string ipAddress = el.GetProperty("address").GetString()!; - int port = el.GetProperty("port").GetInt32(); - return $"{ipAddress}:{port}"; - }) - .ToArray(); - - StringBuilder sb = new(); - foreach (string intf in interfaces) - { - sb.Append("\n\t"); - sb.AppendLine(intf); - } +\******************************************************************************"; + + //See if setup mode is enabled bool setupMode = HostArgs.HasArgument("--setup") && !HostArgs.HasArgument("--disable-registation"); @@ -113,7 +93,7 @@ namespace SimpleBookmark ? "\nWARNING: This server is in setup mode. Account registation is open to all users.\n" : string.Empty; - Log.Information(template, warnMessage, sb); + Log.Information(template, warnMessage); } } } |