From 014597e73e0167423f0eeb969c0157b133f7e81b Mon Sep 17 00:00:00 2001 From: Yiyang Kang Date: Sat, 4 Mar 2023 16:53:00 +0800 Subject: [PATCH] change: default port to 8080 --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e12346..aef356e 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ The only thing it does is serving static files in the current directory. httpserve [port_number] ``` -The default port number is `3000`. +The default port number is `8080`. diff --git a/main.go b/main.go index 5a5d823..cf01b81 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,7 @@ func getLocalAddr() (string, error) { } func main() { - listenPort := 3000 + listenPort := 8080 var err error if len(os.Args) >= 2 {