added correct port
This commit is contained in:
parent
adeb09253e
commit
b94b62c57c
4
main.go
4
main.go
|
@ -219,9 +219,9 @@ func main() {
|
||||||
// Define the HTTP handler function
|
// Define the HTTP handler function
|
||||||
http.HandleFunc("/", handleRequest) // This ensures all requests are routed to handleRequest
|
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"
|
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
|
// Start the HTTP server
|
||||||
fmt.Printf("Listening on %s...\n", address)
|
fmt.Printf("Listening on %s...\n", address)
|
||||||
|
|
Loading…
Reference in New Issue