mirror of
https://github.com/safing/portbase
synced 2025-09-02 02:29:59 +00:00
Merge pull request #110 from safing/feature/improve-config-descr
Improve config description
This commit is contained in:
commit
3f544cb07f
2 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ func getDefaultListenAddress() string {
|
||||||
|
|
||||||
func registerConfig() error {
|
func registerConfig() error {
|
||||||
err := config.Register(&config.Option{
|
err := config.Register(&config.Option{
|
||||||
Name: "API Address",
|
Name: "API Listen Address",
|
||||||
Key: CfgDefaultListenAddressKey,
|
Key: CfgDefaultListenAddressKey,
|
||||||
Description: "Defines the IP address and port for the internal API.",
|
Description: "Defines the IP address and port on which the internal API listens.",
|
||||||
OptType: config.OptTypeString,
|
OptType: config.OptTypeString,
|
||||||
ExpertiseLevel: config.ExpertiseLevelDeveloper,
|
ExpertiseLevel: config.ExpertiseLevelDeveloper,
|
||||||
ReleaseLevel: config.ReleaseLevelStable,
|
ReleaseLevel: config.ReleaseLevelStable,
|
||||||
|
|
|
@ -24,7 +24,7 @@ func init() {
|
||||||
|
|
||||||
func prep() error {
|
func prep() error {
|
||||||
if getDefaultListenAddress() == "" {
|
if getDefaultListenAddress() == "" {
|
||||||
return errors.New("no listen address for api available")
|
return errors.New("no default listen address for api available")
|
||||||
}
|
}
|
||||||
return registerConfig()
|
return registerConfig()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue