This commit is contained in:
Steve 2020-02-20 17:00:20 -05:00
parent 24cf33935d
commit 701dd84163
2 changed files with 1 additions and 2 deletions

1
go.mod
View File

@ -10,7 +10,6 @@ require (
github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.6.2 github.com/spf13/viper v1.6.2
github.com/stryan/go-gopher v0.0.0-20191008152201-adba90945dcb // indirect
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect
golang.org/x/text v0.3.2 // indirect golang.org/x/text v0.3.2 // indirect
gopkg.in/ini.v1 v1.52.0 // indirect gopkg.in/ini.v1 v1.52.0 // indirect

View File

@ -54,7 +54,7 @@ func main() {
hole := h.(GopherConfig) hole := h.(GopherConfig)
gopher.Handle("/", index(gopher.Dir(hole.RootDir))) gopher.Handle("/", index(gopher.Dir(hole.RootDir)))
//log.Fatal(gopher.ListenAndServe(hole.Hostname+":"+hole.Port, nil)) //log.Fatal(gopher.ListenAndServe(hole.Hostname+":"+hole.Port, nil))
server := &gopher.Server{Addr: ":" + hole.Port, Hostname: hole.Hostname, Handler: nil} server := &gopher.Server{Addr: "0.0.0.0:" + hole.Port, Hostname: hole.Hostname, Handler: nil}
log.Fatal(server.ListenAndServe()) log.Fatal(server.ListenAndServe())
wg.Done() wg.Done()
}(h) }(h)