2019-09-02 19:51:38 +05:00
|
|
|
package networker
|
|
|
|
|
|
|
|
import (
|
|
|
|
// stdlib
|
|
|
|
"log"
|
2019-09-02 22:08:37 +05:00
|
|
|
|
|
|
|
// local
|
|
|
|
"develop.pztrn.name/gonews/gonews/configuration"
|
2019-09-02 19:51:38 +05:00
|
|
|
)
|
|
|
|
|
|
|
|
// Initialize initializes package.
|
|
|
|
func Initialize() {
|
|
|
|
log.Println("Initializing network connections handler...")
|
2019-09-02 22:08:37 +05:00
|
|
|
|
|
|
|
for _, iface := range configuration.Cfg.Network {
|
|
|
|
go startServer(iface)
|
|
|
|
}
|
2019-09-02 19:51:38 +05:00
|
|
|
}
|