Allow console-host to be host name as well as IP address.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1202 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2007-10-08 13:59:55 +00:00
parent 992c731fd1
commit 5d577d220e

View File

@ -108,7 +108,7 @@ OOINLINE BOOL StatusIsSendable(OOTCPClientConnectionStatus status)
self = [super init];
if (self != nil)
{
host = [NSHost hostWithAddress:address];
host = [NSHost hostWithName:address];
if (host != nil)
{
[NSStream getStreamsToHost:host