stunAddresses = null ;
} else {
stunAddresses = new TransportAddress[stunRecords.length];
for( int i=0; i<stunRecords.length; ++i ) {
SRVRecord srv = (SRVRecord) stunRecords[i] ;
stunAddresses[i] = new TransportAddress(srv.getTarget().toString().replaceFirst("\\.$", ""), srv.getPort(), Transport.UDP);
}
}
if( turnRecords == null ) {
turnAddresses = null ;
} else {
turnAddresses = new TransportAddress[stunRecords.length];
for( int i=0; i<turnAddresses.length; ++i ) {
SRVRecord srv = (SRVRecord) turnRecords[i] ;
turnAddresses[i] = new TransportAddress(srv.getTarget().toString().replaceFirst("\\.$", ""), srv.getPort(), Transport.UDP);
}
}
}
private Record[] lookupSrv(String query) throws TextParseException {