1
0
Fork 0

Truncate FCS reflector names to six characters.

master
Jonathan Naylor 4 years ago
parent 0c02bec9d2
commit 10dcdbf56f

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2009-2014,2016,2017,2018,2020 by Jonathan Naylor G4KLX * Copyright (C) 2009-2014,2016,2017,2018,2020,2021 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -60,7 +60,7 @@ m_state(DS_NOTOPEN)
m_print = reflector.substr(0U, 6U) + "-" + reflector.substr(6U); m_print = reflector.substr(0U, 6U) + "-" + reflector.substr(6U);
char url[50U]; char url[50U];
::sprintf(url, "%s.xreflector.net", reflector.c_str()); ::sprintf(url, "%.6s.xreflector.net", reflector.c_str());
if (CUDPSocket::lookup(std::string(url), FCS_PORT, m_addr, m_addrLen) != 0) if (CUDPSocket::lookup(std::string(url), FCS_PORT, m_addr, m_addrLen) != 0)
m_addrLen = 0U; m_addrLen = 0U;
} }

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2015-2020 by Jonathan Naylor G4KLX * Copyright (C) 2015-2021 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20201108"; const char* VERSION = "20210228";
#endif #endif

Loading…
Cancel
Save