This commit is contained in:
2024-10-17 20:28:43 +03:00
parent 4c7a1758d6
commit ef84b7d7f9
8 changed files with 335 additions and 76 deletions

View File

@ -77,7 +77,9 @@ func main() {
go TCPClient.StartClient()
go TCPServer.StartServer()
go HTTPServer.StartHTTPServer()
if Cfg.General.HTTPServer {
go HTTPServer.StartHTTPServer()
}
for sig := range sigCh {
log.Infof("received signal: %v, shutting down TCP Client.", sig)