f-21: code: change from ip to interface type
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
066b90dff4
commit
9ec6e64327
8 changed files with 41 additions and 40 deletions
|
|
@ -36,7 +36,7 @@ func main() {
|
|||
apiAddr := fmt.Sprintf("%s:%d", cfg.Api.Address, cfg.Api.Port)
|
||||
promAddr := fmt.Sprintf("%s:%d", cfg.Prometheus.Address, cfg.Prometheus.Port)
|
||||
|
||||
d := dispatcher.New(q, db)
|
||||
d := dispatcher.New(q, db, cfg.Interfaces)
|
||||
go agentapi.New(d, db).Start(apiAddr)
|
||||
go promserver.Start(promAddr, registry)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue