Skip to content

Commit

Permalink
tailscale_hook: add timeout (default 20s)
Browse files Browse the repository at this point in the history
this should ensure that initialisation doesn't hang if not logged in or
network isn't available
  • Loading branch information
classabbyamp committed Sep 12, 2023
1 parent a123050 commit 1451e0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sourced as a busybox ash shell script.

tailscale_port: argument to -port (default: 41641)
tailscaled_args: other args to pass to tailscaled
tailscale_timeout: argument to --timeout (default: 20s)
tailscale_args: other args to pass to tailscale up

> Note: This project is not affiliated with Tailscale in any way
Expand Down
2 changes: 1 addition & 1 deletion tailscale_hook
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ run_hook() {
(
[ -r /etc/tailscale/tailscaled.conf ] && . /etc/tailscale/tailscaled.conf
tailscaled -state "/etc/tailscale/tailscaled.state" -port "${tailscale_port:-41641}" $tailscaled_args &
tailscale up $tailscale_args
tailscale up --timeout="${tailscale_timeout:-20s}" $tailscale_args
)
}

Expand Down
1 change: 1 addition & 0 deletions tailscale_install
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ help() {
tailscale_port: argument to -port (default: 41641)
tailscaled_args: other args to pass to tailscaled
tailscale_timeout: argument to --timeout (default: 20s)
tailscale_args: other args to pass to tailscale up
See the README for security considerations and full setup instructions.
Expand Down

0 comments on commit 1451e0e

Please sign in to comment.