Skip to content

Commit

Permalink
remove 'network' argument
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaaaalex committed Apr 20, 2021
1 parent 3092c2b commit e1ce9c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

func main() {
network := flag.String("n", "tcp", "network to communicate over")
address := flag.String("a", "127.0.0.1:9000", "address to listen on")
rootPath := flag.String("d", "/var/www/", "directory to serve from")
index := flag.String("i", "index.gohtml", "filename of directory indexes")
Expand All @@ -34,7 +33,7 @@ func main() {
}
log.Infof("Serving directory \"%s\"", *rootPath)

listener, err := net.Listen(*network, *address)
listener, err := net.Listen("tcp", *address)
if err != nil {
log.Fatalf("Couldn't listen on %s: %s", *address, err.Error())
return
Expand Down

0 comments on commit e1ce9c1

Please sign in to comment.