fix mistaken and very broken commit

(Fortunately I never ran a relay with this in it!)
This commit is contained in:
Eric House 2018-05-21 20:49:35 -07:00
parent 7fa0cb1b93
commit 40ce484a92
2 changed files with 2 additions and 3 deletions

View file

@ -57,8 +57,7 @@ DevMgr::rememberDevice( DevIDRelay devid, const AddrInfo::AddrUnion* saddr )
pair<map<DevIDRelay,UDPAddrRec>::iterator, bool> result =
m_devAddrMap.insert( pair<DevIDRelay,UDPAddrRec>( devid, rec ) );
if ( !result.second ) {
logf( XW_LOGINFO, "%s: replacing address for %d; was %s, now %s",
__func__, devid, result.first->second, rec );
logf( XW_LOGINFO, "%s: replacing address for %d", __func__, devid );
result.first->second = rec;
}

View file

@ -1840,7 +1840,7 @@ handle_udp_packet( PacketThreadClosure* ptc )
}
case XWPDEV_KEEPALIVE:
case XWPDEV_RQSTMSGS: { // here
case XWPDEV_RQSTMSGS: {
DevID devID( ID_TYPE_RELAY );
if ( getVLIString( &ptr, end, devID.m_devIDString ) ) {
const AddrInfo* addr = ptc->addr();