diff options
author | rubidium <rubidium@openttd.org> | 2011-07-30 10:28:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-07-30 10:28:52 +0000 |
commit | 289133be148788a19a965f807e7b824c4d26f872 (patch) | |
tree | fa0820207322815661878611fb98b8b6013475d5 /src/network/core/address.cpp | |
parent | ba7611ed131b0f99dae4ca974aa1cf9c6114b6f5 (diff) | |
download | openttd-289133be148788a19a965f807e7b824c4d26f872.tar.xz |
(svn r22695) -Fix [FS#4697]: mark addresses that could not be resolved as 'do not resolve anymore' as well, instead of trying to resolve them each and every time the address is accessed
Diffstat (limited to 'src/network/core/address.cpp')
-rw-r--r-- | src/network/core/address.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp index cb93e66b3..371f53403 100644 --- a/src/network/core/address.cpp +++ b/src/network/core/address.cpp @@ -132,6 +132,7 @@ const sockaddr_storage *NetworkAddress::GetAddress() * that means "don't care whether it is SOCK_STREAM or SOCK_DGRAM". */ this->Resolve(this->address.ss_family, SOCK_STREAM, AI_ADDRCONFIG, NULL, ResolveLoopProc); + this->resolved = true; } return &this->address; } |