Make EPICS_CAS_BEACON_ADDR_LIST fall back to EPICS_CA_ADDR_LIST
This will allow "simple" configurations that only define EPICS_CA_ADDR_LIST and EPICS_CA_AUTO_ADDR_LIST=NO to get beacons sent to that configured audience. (fixes #7)
This commit is contained in:
@ -151,12 +151,18 @@ casDGIntfIO::casDGIntfIO ( caServerI & serverIn, clientBufMemoryManager & memMgr
|
||||
epicsSocketDestroy (this->sock);
|
||||
throw S_cas_bindFail;
|
||||
}
|
||||
|
||||
if ( addConfigBeaconAddr ) {
|
||||
addAddrToChannelAccessAddressList (
|
||||
& BCastAddrList, &EPICS_CAS_BEACON_ADDR_LIST, beaconPort, 0 );
|
||||
|
||||
if (addConfigBeaconAddr) {
|
||||
if (envGetConfigParamPtr ( & EPICS_CAS_BEACON_ADDR_LIST ) ) {
|
||||
addAddrToChannelAccessAddressList (
|
||||
& BCastAddrList, & EPICS_CAS_BEACON_ADDR_LIST, beaconPort, 0 );
|
||||
}
|
||||
else {
|
||||
addAddrToChannelAccessAddressList (
|
||||
& BCastAddrList, & EPICS_CA_ADDR_LIST, beaconPort, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
removeDuplicateAddresses ( & this->beaconAddrList, & BCastAddrList, 0 );
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user