change: default port to 8080

This commit is contained in:
Yiyang Kang 2023-03-04 16:53:00 +08:00
parent ce1b711f84
commit 014597e73e
Signed by: kkyy
GPG Key ID: 80FD317ECAF06CC3
2 changed files with 2 additions and 2 deletions

View File

@ -10,4 +10,4 @@ The only thing it does is serving static files in the current directory.
httpserve [port_number] httpserve [port_number]
``` ```
The default port number is `3000`. The default port number is `8080`.

View File

@ -27,7 +27,7 @@ func getLocalAddr() (string, error) {
} }
func main() { func main() {
listenPort := 3000 listenPort := 8080
var err error var err error
if len(os.Args) >= 2 { if len(os.Args) >= 2 {