X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=interface.c;h=7ba922f978ea745d38bf178ad307754d6660a86f;hb=b5cb227ae077ce4d1e01c7487e40bfd84167cff3;hp=7a485e78e1e74fce3626d8d107035935add4892a;hpb=4567784e2b9cd5b592b1b16056449ac24d80eedd;p=~andy%2Ffetchmail diff --git a/interface.c b/interface.c index 7a485e78..7ba922f9 100644 --- a/interface.c +++ b/interface.c @@ -434,7 +434,7 @@ void interface_note_activity(struct hostdata *hp) #endif } -int interface_approve(struct hostdata *hp) +int interface_approve(struct hostdata *hp, flag domonitor) /* return TRUE if OK to poll, FALSE otherwise */ { ifinfo_t ifinfo; @@ -460,7 +460,7 @@ int interface_approve(struct hostdata *hp) } /* if not monitoring link, all done */ - if (!hp->monitor) + if (!domonitor || !hp->monitor) return(TRUE); #ifdef ACTIVITY_DEBUG