diff --git a/src/usr/local/emhttp/plugins/tailscale/include/tailscale-watcher/always/webgui-check.php b/src/usr/local/emhttp/plugins/tailscale/include/tailscale-watcher/always/webgui-check.php index cf4f921..71b313f 100644 --- a/src/usr/local/emhttp/plugins/tailscale/include/tailscale-watcher/always/webgui-check.php +++ b/src/usr/local/emhttp/plugins/tailscale/include/tailscale-watcher/always/webgui-check.php @@ -1,8 +1,7 @@ getMessage()); + } + } + } - foreach (glob("{$docroot}/plugins/tailscale/include/tailscale-watcher/*.php") as $file) { + foreach (glob("{$docroot}/plugins/tailscale/include/tailscale-watcher/always/*.php") as $file) { try { require $file; } catch (Exception $e) { logmsg("Caught exception in {$file} : " . $e->getMessage()); } } - } - - foreach (glob("{$docroot}/plugins/tailscale/include/tailscale-watcher/always/*.php") as $file) { - try { - require $file; - } catch (Exception $e) { - logmsg("Caught exception in {$file} : " . $e->getMessage()); - } + } else { + logmsg("Waiting for Tailscale IP"); } }