mirror of
https://github.com/sheumann/AFPBridge.git
synced 2024-10-31 09:15:11 +00:00
Connect to the network before doing a DNS lookup, if we're not connected already.
This commit is contained in:
parent
d08a36c9ca
commit
4bb7e378ba
@ -98,6 +98,10 @@ LongWord DoLookupName(NBPLookupNameRec *commandRec) {
|
||||
hostInfo.cvtPort =
|
||||
TCPIPMangleDomainName(0, &resultBuf->entityName.buffer[0]);
|
||||
} else {
|
||||
// Make sure we're connected before doing DNS lookup.
|
||||
if (TCPIPGetConnectStatus() == FALSE)
|
||||
TCPIPConnect(NULL);
|
||||
|
||||
hostInfo.cvtPort =
|
||||
TCPIPMangleDomainName(0xE000, &resultBuf->entityName.buffer[0]);
|
||||
TCPIPDNRNameToIP(&resultBuf->entityName.buffer[0], &dnrInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user