custom-module: document settings.appAddresses; restrict setting object access

This commit is contained in:
bordun 2020-11-08 17:29:45 +01:00
parent 527e06f3df
commit 94b1c6a5ee
2 changed files with 10 additions and 1 deletions

View file

@ -81,6 +81,12 @@ Returns specified server option. `name` must be the option's long name without t
----
#### `settings.appAddresses()`
Returns the server's http addresses.
----
#### `options`
`Array` containing the extra options passed to `--custom-module` after the filename

View file

@ -52,7 +52,10 @@ class CustomModule {
}
},
console: console,
settings: settings,
settings: {
read: settings.read,
appAddresses: settings.appAddresses,
},
setTimeout: this.setTimeout.bind(this),
clearTimeout: this.clearTimeout.bind(this),
setInterval: this.setInterval.bind(this),