test node messages

This commit is contained in:
partisan 2024-06-29 21:27:48 +02:00
parent 78c8fdbb4a
commit 30aa3d0238
7 changed files with 195 additions and 8 deletions

View file

@ -135,9 +135,14 @@ func runServer() {
})
initializeTorrentSites()
http.HandleFunc("/node", handleNodeRequest) // Handle node requests
config := loadConfig()
generateOpenSearchXML(config)
// Start node communication client
go startNodeClient(peers)
fmt.Printf("Server is listening on http://localhost:%d\n", config.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", config.Port), nil))
}