mirror of
https://github.com/hassio-addons/addon-zerotier.git
synced 2025-05-04 11:11:30 +00:00
✨ Adds support for Hass.io network configuration
This commit is contained in:
parent
4b9b32c299
commit
762e49376e
2 changed files with 7 additions and 1 deletions
|
@ -12,6 +12,12 @@
|
|||
"armv7",
|
||||
"i386"
|
||||
],
|
||||
"ports": {
|
||||
"9993/tcp": 9993
|
||||
},
|
||||
"ports_description": {
|
||||
"9993/tcp": "ZeroTier's primary port"
|
||||
},
|
||||
"boot": "auto",
|
||||
"hassio_api": true,
|
||||
"hassio_role": "default",
|
||||
|
|
|
@ -9,7 +9,7 @@ bashio::log.info "Starting ZeroTier One..."
|
|||
|
||||
# Note sure what this does.
|
||||
options+=(-U)
|
||||
options+=("-p$(bashio::config 'port')")
|
||||
options+=("-p$(bashio::addon.port 9993)")
|
||||
|
||||
# Run the ZeroTier One
|
||||
exec zerotier-one "${options[@]}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue