change: default port to 8080
This commit is contained in:
parent
ce1b711f84
commit
014597e73e
2 changed files with 2 additions and 2 deletions
|
|
@ -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`.
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue