From fae4bff32b90c5b31a6152c33eef4ade87c79664 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 18 Jun 2023 20:24:58 +1000 Subject: [PATCH] main: HIP-02 fix for Bob port If Bob is the HSD FireWallet is connected to use the default Bob DNS resolver port --- FireWallet/MainForm.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/FireWallet/MainForm.cs b/FireWallet/MainForm.cs index c9179ca..f7cffa3 100644 --- a/FireWallet/MainForm.cs +++ b/FireWallet/MainForm.cs @@ -1355,6 +1355,13 @@ namespace FireWallet if (UserSettings.ContainsKey("hip-02-port")) { port = int.Parse(UserSettings["hip-02-port"]); + } else if (!HSD) + { + string bobPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Bob\\hsd_data"; + if (Directory.Exists(bobPath)) + { + port = 9892; + } } NameServer nameServer = new NameServer(IPAddress.Parse(ip), port);