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

@ -1,3 +1,8 @@
2002-04-19 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/gdnc.m: If given -NSHost specification for the current host,
ignore it and use the standard name.
2002-04-18 Richard Frith-Macdonald <rfm@gnu.org>
* SSL/COPYING.LIB: New file ... just to make it *REALLY* obvious

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)
{