pike.git
/
NT
/
tools
/
sprshd
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/NT/tools/sprshd:275:
#endif destruct(io); } void handle_connections(string *hosts) { while(1) { if(object io=accept()) {
+
int ok=0;
sscanf(io->query_address(),"%s ",string ip);
-
if
(
search(
hosts,
ip
)=
=-1
)
+
foreach
(hosts,
string host
)
ok+
=
glob(host, ip
)
;
+
if(!ok)
{ werror("Connection from %s denied!!\n",ip); destruct(io); continue; } thread_create(handle_incoming_connection,io); }else{ werror("Accept failed "+errno()+"\n"); } }