Adds support for Hass.io network configuration

This commit is contained in:
Franck Nijhof 2019-04-16 13:16:23 +02:00
parent 4b9b32c299
commit 762e49376e
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 7 additions and 1 deletions

View file

@ -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",

View file

@ -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[@]}"