Skip to content
Snippets Groups Projects
Commit b29cd3e7 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

now accepts globs in ip arguments

Rev: NT/tools/sprshd:1.19
parent f3378f89
No related branches found
No related tags found
No related merge requests found
......@@ -282,8 +282,10 @@ void handle_connections(string *hosts)
{
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment