Handle NSHost specification better.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13511 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-04-19 05:47:37 +00:00
parent 923596f458
commit 0cb5f21e15
2 changed files with 7 additions and 1 deletions

View file

@ -226,7 +226,8 @@
[conn setRootObject: self];
hostname = [[NSUserDefaults standardUserDefaults] stringForKey: @"NSHost"];
if ([hostname length] == 0)
if ([hostname length] == 0
|| [[NSHost hostWithName: hostname] isEqual: [NSHost currentHost]] == YES)
{
if ([conn registerName: GDNC_SERVICE] == NO)
{