URL:
<http://savannah.gnu.org/bugs/?34272>
Summary: WebServer (v1.4.4) has no support of specifying
interface to be listened
Project: GNUstep
Submitted by: tsomeqdev
Submitted on: 2011年09月12日 18時31分18秒
Category: Libraries
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Hi.
I think, other web server has a section of configuration to specify address
listened.
-- Apache`s example --
Listen *:80 #Any addresses
Listen 192.168.0.1:80 #can accept connection only from LAN
--
This is useful if the server has two or more global addresses ( IP alias ).
It enables parallel running of different web server instances on ONE machine.
But WebServer library currently does not support such case....
The code is written :
--
WebServer.m (Near line 1440)
_listener = [NSFileHandle fileHandleAsServerAtAddress: nil
service: _port
protocol: @"tcp"];
--
How about adding a new Method ?
@interface WebServer
...
- (void) setListenAddress:(NSString*)address
@end
regards.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34272>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep