added correct port

This commit is contained in:
Falko Victor Habel 2024-05-27 11:41:28 +02:00
parent adeb09253e
commit b94b62c57c
1 changed files with 2 additions and 2 deletions

View File

@ -219,9 +219,9 @@ func main() {
// Define the HTTP handler function
http.HandleFunc("/", handleRequest) // This ensures all requests are routed to handleRequest
// Define the port and ensure listening on localhost only
// Define the port
port := "53184"
address := fmt.Sprintf("localhost:%s", port) // Listen on localhost interface only
address := fmt.Sprintf("0.0.0.0:%s", port)
// Start the HTTP server
fmt.Printf("Listening on %s...\n", address)