mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-15 08:01:42 +00:00
set up well known hosts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@38928 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
77f3ae9341
commit
0a83fb13e2
4 changed files with 28 additions and 0 deletions
|
@ -42,11 +42,13 @@
|
|||
#import "EcAlarm.h"
|
||||
#import "EcProcess.h"
|
||||
#import "EcUserDefaults.h"
|
||||
#import "EcHost.h"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
NSUserDefaults *defs;
|
||||
NSDictionary *dict;
|
||||
EcAlarm *alrm;
|
||||
NSArray *args;
|
||||
NSString *cnam;
|
||||
|
@ -74,6 +76,11 @@ main()
|
|||
}
|
||||
defs = [NSUserDefaults userDefaultsWithPrefix: pref
|
||||
strict: EC_DEFAULTS_STRICT];
|
||||
dict = [defs dictionaryForKey: @"WellKnownHostNames"];
|
||||
if (nil != dict)
|
||||
{
|
||||
[NSHost setWellKnownNames: dict];
|
||||
}
|
||||
|
||||
args = [[NSProcessInfo processInfo] arguments];
|
||||
if ([args containsObject: @"--help"] == YES)
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
2015-08-25 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
AlarmTool.m:
|
||||
LogTool.m:
|
||||
Termintate.m:
|
||||
Set up well known hosts at start.
|
||||
|
||||
2015-07-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* EcProcess.h:
|
||||
|
|
|
@ -41,11 +41,13 @@
|
|||
|
||||
#import "EcProcess.h"
|
||||
#import "EcUserDefaults.h"
|
||||
#import "EcHost.h"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
NSUserDefaults *defs;
|
||||
NSDictionary *dict;
|
||||
NSArray *args;
|
||||
NSString *pref;
|
||||
NSString *host;
|
||||
|
@ -68,6 +70,11 @@ main()
|
|||
}
|
||||
defs = [NSUserDefaults userDefaultsWithPrefix: pref
|
||||
strict: EC_DEFAULTS_STRICT];
|
||||
dict = [defs dictionaryForKey: @"WellKnownHostNames"];
|
||||
if (nil != dict)
|
||||
{
|
||||
[NSHost setWellKnownNames: dict];
|
||||
}
|
||||
|
||||
args = [[NSProcessInfo processInfo] arguments];
|
||||
if ([args containsObject: @"--help"] == YES)
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
|
||||
#import "EcProcess.h"
|
||||
#import "EcUserDefaults.h"
|
||||
#import "EcHost.h"
|
||||
|
||||
|
||||
int
|
||||
|
@ -48,6 +49,7 @@ main()
|
|||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
NSUserDefaults *defs;
|
||||
NSDictionary *dict;
|
||||
NSString *pref;
|
||||
NSString *host;
|
||||
NSString *name;
|
||||
|
@ -63,6 +65,11 @@ main()
|
|||
}
|
||||
defs = [NSUserDefaults userDefaultsWithPrefix: pref
|
||||
strict: EC_DEFAULTS_STRICT];
|
||||
dict = [defs dictionaryForKey: @"WellKnownHostNames"];
|
||||
if (nil != dict)
|
||||
{
|
||||
[NSHost setWellKnownNames: dict];
|
||||
}
|
||||
|
||||
/*
|
||||
* Shut down the local command server.
|
||||
|
|
Loading…
Reference in a new issue