mirror of https://github.com/0xERR0R/blocky.git
fix: parse the API URL using the non-deprecated options
This commit is contained in:
parent
a077b1a66a
commit
42db8ec943
|
@ -88,8 +88,8 @@ func initConfig() {
|
|||
|
||||
log.ConfigureLogger(&cfg.Log)
|
||||
|
||||
if len(cfg.HTTPPorts) != 0 {
|
||||
split := strings.Split(cfg.HTTPPorts[0], ":")
|
||||
if len(cfg.Ports.HTTP) != 0 {
|
||||
split := strings.Split(cfg.Ports.HTTP[0], ":")
|
||||
|
||||
lastIdx := len(split) - 1
|
||||
|
||||
|
|
Loading…
Reference in New Issue