From b29cd3e76633fd413e108214059259dbbcfe2495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 16 May 2000 11:33:31 -0700 Subject: [PATCH] now accepts globs in ip arguments Rev: NT/tools/sprshd:1.19 --- NT/tools/sprshd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NT/tools/sprshd b/NT/tools/sprshd index 461698561f..48080213e8 100755 --- a/NT/tools/sprshd +++ b/NT/tools/sprshd @@ -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); -- GitLab