From a4d226db29b19ca3b3536da39d5f21e8e239ed8d Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 22 Mar 2025 18:34:16 -0400 Subject: [PATCH] ensure the identity string is never empty, if it is replace it with the peer ID; --- configs/codeplug.example.yml | 2 +- dvmconsole/PeerSystem.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/codeplug.example.yml b/configs/codeplug.example.yml index 14318c5..5aad3aa 100644 --- a/configs/codeplug.example.yml +++ b/configs/codeplug.example.yml @@ -10,7 +10,7 @@ systems: # Textual name for internal and external reference to this system - name: "System 1" # Textual name to idenitify this peer in the FNE - Identity: "CONS OP1" + identity: "CONS OP1" # FNE Address address: "127.0.0.1" # FNE Port diff --git a/dvmconsole/PeerSystem.cs b/dvmconsole/PeerSystem.cs index e513baa..60df043 100644 --- a/dvmconsole/PeerSystem.cs +++ b/dvmconsole/PeerSystem.cs @@ -74,6 +74,9 @@ namespace dvmconsole string software = $"CONSOLE_R{_SEM_VERSION.Major.ToString("D2")}A{_SEM_VERSION.Minor.ToString("D2")}"; + if (system.Identity.Length == 0) + system.Identity = system.PeerId.ToString(); + // set configuration parameters peer.Passphrase = system.Password; peer.Information = new PeerInformation