-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advertise all supported interfaces as Tailscale Subnets #135
Conversation
5f3df99
to
e60839f
Compare
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Not stale, waiting for review/merge... |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
Not stale, waiting for review/merge... |
function list::contains() { | ||
local list=${1} | ||
local item=${2} | ||
|
||
if [[ "${list}" =~ (^|[[:space:]])"${item}"($|[[:space:]]) ]]; then | ||
return 0 | ||
else | ||
return 1 | ||
fi | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not directly use uniq
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I finally used sort -u
.
e60839f
to
1072d28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @lmagyar 👍
../Frenck
Revives PR #116
Fixes #96
Proposed Changes
Advertise all supported interfaces as Tailscale Subnets not only the default interface.
Related Issues
#96