aboutsummaryrefslogtreecommitdiffstats
path: root/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 2 insertions, 2 deletions
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