From e129b1640c72dc43f6b128f66ef089ac0c4d1ad7 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 7 Jan 2014 22:51:50 +0000
Subject: [PATCH] Change default login command from "telnet://127.0.0.1" to
 "telnet://localhost" to work-around issue when SyncTERM (with ipv6 support)
 is the default Telnet URI handler.

---
 src/sbbs3/ctrl/MainFormUnit.cpp      | 4 ++--
 src/sbbs3/ctrl/PropertiesDlgUnit.dfm | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/ctrl/MainFormUnit.cpp b/src/sbbs3/ctrl/MainFormUnit.cpp
index c75329fd9f..047a3879bd 100644
--- a/src/sbbs3/ctrl/MainFormUnit.cpp
+++ b/src/sbbs3/ctrl/MainFormUnit.cpp
@@ -6,7 +6,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright 2014 Rob Swindell - http://www.synchro.net/copyright.html		*
  *																			*
  * This program is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU General Public License				*
@@ -821,7 +821,7 @@ __fastcall TMainForm::TMainForm(TComponent* Owner)
     global.sem_chk_freq=5;		/* seconds */
 
     /* These are SBBSCTRL-specific */
-    LoginCommand="telnet://localhost";
+    LoginCommand="telnet://127.0.0.1";
     ConfigCommand="%sscfg.exe %s -l25";
     MinimizeToSysTray=false;
     UndockableForms=false;
diff --git a/src/sbbs3/ctrl/PropertiesDlgUnit.dfm b/src/sbbs3/ctrl/PropertiesDlgUnit.dfm
index 4120f0a959..3bcdc98c3c 100644
--- a/src/sbbs3/ctrl/PropertiesDlgUnit.dfm
+++ b/src/sbbs3/ctrl/PropertiesDlgUnit.dfm
@@ -102,7 +102,7 @@ object PropertiesDlg: TPropertiesDlg
         Top = 10
         Width = 137
         Height = 24
-        Hint = 'Login command-line or URL (default = telnet://localhost)'
+        Hint = 'Login command-line or URL (default = telnet://127.0.0.1)'
         ParentShowHint = False
         ShowHint = True
         TabOrder = 0
-- 
GitLab