refactor: try to use core.externalPort if set, else use core.port
This commit is contained in:
parent
fecc99b081
commit
2caaa07da8
|
@ -51,7 +51,12 @@ func (s *S5Protocol) Initialize(portal interfaces.Portal) error {
|
|||
}
|
||||
|
||||
cfg.HTTP.API.Domain = config.GetString("core.domain")
|
||||
|
||||
if config.IsSet("core.externalPort") {
|
||||
cfg.HTTP.API.Port = config.GetUint("core.externalPort")
|
||||
} else {
|
||||
cfg.HTTP.API.Port = config.GetUint("core.port")
|
||||
}
|
||||
dbPath := pconfig.GetString("dbPath")
|
||||
|
||||
if dbPath == "" {
|
||||
|
|
Loading…
Reference in New Issue