✨ Adds support for Hass.io network configuration
This commit is contained in:
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user