test node messages
This commit is contained in:
parent
78c8fdbb4a
commit
30aa3d0238
7 changed files with 195 additions and 8 deletions
5
main.go
5
main.go
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue