mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
* GSWeb.framework/GSWDefaultAdaptor.m: Whitespace update.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19245 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01582f161b
commit
1fe33a8239
2 changed files with 21 additions and 11 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
* INSTALL: Update prerequisites.
|
||||
* GSWAdaptors/common/common.make: Whitespace update.
|
||||
* GSWeb.framework/GSWDefaultAdaptor.m: Ditto.
|
||||
|
||||
2004-04-22 S.J. Chun <chunsj@embian.com>
|
||||
|
||||
|
|
|
@ -770,15 +770,18 @@ int allow_severity = LOG_INFO;
|
|||
if ([_adaptorHost length]>0)
|
||||
{
|
||||
NSString* connAddress=[handle socketAddress];
|
||||
NSDebugMLog(@"HANDLE connAddress: %@ _adaptorHost=%@",connAddress,_adaptorHost);
|
||||
NSDebugMLog(@"HANDLE connAddress: %@ _adaptorHost=%@",
|
||||
connAddress,_adaptorHost);
|
||||
if ([connAddress isEqualToString:_adaptorHost])
|
||||
{
|
||||
[GSWApplication statusDebugWithFormat:@"ACCEPTED connection from: %@ (Allowed: %@)",
|
||||
[GSWApplication statusDebugWithFormat:
|
||||
@"ACCEPTED connection from: %@ (Allowed: %@)",
|
||||
connAddress,_adaptorHost];
|
||||
}
|
||||
else
|
||||
{
|
||||
[GSWApplication statusLogErrorWithFormat:@"REFUSED connection from: %@ (Allowed: %@)",
|
||||
[GSWApplication statusLogErrorWithFormat:
|
||||
@"REFUSED connection from: %@ (Allowed: %@)",
|
||||
connAddress,_adaptorHost];
|
||||
allowed=NO;
|
||||
if (retMessage)
|
||||
|
@ -791,25 +794,31 @@ int allow_severity = LOG_INFO;
|
|||
#if HAVE_LIBWRAP
|
||||
NSString* appName=nil;
|
||||
struct request_info libwrapRequestInfo;
|
||||
memset(&libwrapRequestInfo,0,sizeof(libwrapRequestInfo));
|
||||
memset(&libwrapRequestInfo, 0, sizeof(libwrapRequestInfo));
|
||||
|
||||
appName=[[GSWApplication application]name];
|
||||
request_init(&libwrapRequestInfo, RQ_DAEMON,[appName cString], RQ_FILE, [handle fileDescriptor], 0);
|
||||
appName = [[GSWApplication application] name];
|
||||
request_init(&libwrapRequestInfo, RQ_DAEMON,
|
||||
[appName cString], RQ_FILE, [handle fileDescriptor], 0);
|
||||
|
||||
fromhost(&libwrapRequestInfo);
|
||||
if (STR_EQ(eval_hostname(libwrapRequestInfo.client), paranoid) || !hosts_access(&libwrapRequestInfo))
|
||||
if (STR_EQ(eval_hostname(libwrapRequestInfo.client), paranoid)
|
||||
|| !hosts_access(&libwrapRequestInfo))
|
||||
{
|
||||
allowed=NO;
|
||||
allowed = NO;
|
||||
if (retMessage)
|
||||
*retMessage=@"libwrap denied";//TODO
|
||||
[GSWApplication statusDebugWithFormat:@"libwrap app: %@ REFUSED connection from: %s (%s)",
|
||||
{
|
||||
*retMessage = @"libwrap denied";//TODO
|
||||
}
|
||||
[GSWApplication statusDebugWithFormat:
|
||||
@"libwrap: %@ REFUSED connection from: %s (%s)",
|
||||
appName,
|
||||
libwrapRequestInfo.client[0].name,
|
||||
libwrapRequestInfo.client[0].addr];
|
||||
}
|
||||
else
|
||||
{
|
||||
[GSWApplication statusDebugWithFormat:@"libwrap app: %@ ACCEPTED connection from: %s (%s)",
|
||||
[GSWApplication statusDebugWithFormat:
|
||||
@"libwrap: %@ ACCEPTED connection from: %s (%s)",
|
||||
appName,
|
||||
libwrapRequestInfo.client[0].name,
|
||||
libwrapRequestInfo.client[0].addr];
|
||||
|
|
Loading…
Reference in a new issue