mirror of
https://github.com/g4klx/DAPNETGateway.git
synced 2026-08-26 12:32:45 -04:00
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x].
This commit is contained in:
parent
183615d52e
commit
310cf0c8ff
9 changed files with 34 additions and 33 deletions
|
|
@ -213,9 +213,9 @@ int CDAPNETGateway::run()
|
|||
bool debug = m_conf.getDAPNETDebug();
|
||||
|
||||
std::string rptAddress = m_conf.getRptAddress();
|
||||
unsigned int rptPort = m_conf.getRptPort();
|
||||
unsigned short rptPort = m_conf.getRptPort();
|
||||
std::string myAddress = m_conf.getMyAddress();
|
||||
unsigned int myPort = m_conf.getMyPort();
|
||||
unsigned short myPort = m_conf.getMyPort();
|
||||
|
||||
m_pocsagNetwork = new CPOCSAGNetwork(myAddress, myPort, rptAddress, rptPort, debug);
|
||||
ret = m_pocsagNetwork->open();
|
||||
|
|
@ -228,7 +228,7 @@ int CDAPNETGateway::run()
|
|||
|
||||
std::string callsign = m_conf.getCallsign();
|
||||
std::string dapnetAddress = m_conf.getDAPNETAddress();
|
||||
unsigned int dapnetPort = m_conf.getDAPNETPort();
|
||||
unsigned short dapnetPort = m_conf.getDAPNETPort();
|
||||
std::string dapnetAuthKey = m_conf.getDAPNETAuthKey();
|
||||
|
||||
if (dapnetAuthKey.length() == 0 || dapnetAuthKey == "TOPSECRET") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue