diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2019-03-24 17:56:26 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2019-03-24 17:56:26 +0000 |
commit | f0366cf0338ed2c176ba8a2086ee607edaa13552 (patch) | |
tree | 713b043a51c436aec1402bbd6896d71751c5777e /sbin | |
parent | 313902ca9d32f72f7a737818701f975e89dd0335 (diff) |
recheck all resolvers when we are no longer behind a captive portal
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/unwind/resolver.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/unwind/resolver.c b/sbin/unwind/resolver.c index cccde4abf4b..f38bc06a166 100644 --- a/sbin/unwind/resolver.c +++ b/sbin/unwind/resolver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolver.c,v 1.25 2019/03/24 17:55:58 florian Exp $ */ +/* $OpenBSD: resolver.c,v 1.26 2019/03/24 17:56:25 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -476,8 +476,10 @@ resolver_dispatch_captiveportal(int fd, short event, void *bula) log_debug("%s: IMSG_CAPTIVEPORTAL_STATE: %s", __func__, captive_portal_state_str[captive_portal_state]); - if (captive_portal_state == NOT_BEHIND) + if (captive_portal_state == NOT_BEHIND) { evtimer_del(&captive_portal_check_ev); + schedule_recheck_all_resolvers(); + } break; default: |