Skip to content

Commit

Permalink
server fail to start w/ invalid EPICS_PVAS_INTF_ADDR_LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Aug 20, 2019
1 parent 89bbe09 commit 03b0121
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/serverContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ void ServerContextImpl::loadConfiguration()
_ifaceAddr.ia.sin_family = AF_INET;
_ifaceAddr.ia.sin_addr.s_addr = htonl(INADDR_ANY);
_ifaceAddr.ia.sin_port = 0;
config->getPropertyAsAddress("EPICS_PVAS_INTF_ADDR_LIST", &_ifaceAddr);
if(!config->getPropertyAsAddress("EPICS_PVAS_INTF_ADDR_LIST", &_ifaceAddr) && config->hasProperty("EPICS_PVAS_INTF_ADDR_LIST"))
THROW_EXCEPTION2(std::runtime_error, "EPICS_PVAS_INTF_ADDR_LIST contains invalid IP or non-existant hostname");

_beaconAddressList = config->getPropertyAsString("EPICS_PVA_ADDR_LIST", _beaconAddressList);
_beaconAddressList = config->getPropertyAsString("EPICS_PVAS_BEACON_ADDR_LIST", _beaconAddressList);
Expand Down

0 comments on commit 03b0121

Please sign in to comment.