This commit is contained in:
2024-10-17 20:28:43 +03:00
parent 4c7a1758d6
commit ef84b7d7f9
8 changed files with 335 additions and 76 deletions

View File

@ -126,7 +126,7 @@ func (c *TCPClient) ReadLine() {
continue
}
if strings.Contains(message, "Login: \r\n") || strings.Contains(message, "Please enter your call: \r\n") {
if strings.Contains(message, Cfg.Cluster.LoginPrompt+" \r\n") {
c.Log.Debug("Found login prompt...sending callsign")
c.Write([]byte(c.Login + "\r\n"))
time.Sleep(time.Second * 2)