Update README

This commit is contained in:
Maddie Zhan 2020-03-11 12:37:55 +08:00
parent 211375e046
commit ee58af108a
3 changed files with 4 additions and 4 deletions

View file

@ -64,7 +64,7 @@ You need Go 1.13+ to compile the binary.
4. Change `settings.toml` according to your environment:
```toml
# bind address
# bind address, use empty string to bind to all interfaces
bind_address="127.0.0.1"
# backend listen port, default is 8989
listen_port=8989

View file

@ -1,5 +1,5 @@
# bind address
bind_address="127.0.0.1"
# bind address, use empty string to bind to all interfaces
bind_address=""
# backend listen port
listen_port=8989
# download test chunks

View file

@ -44,7 +44,7 @@ func ListenAndServe(conf *config.Config) error {
r.Use(middleware.NoCache)
r.Use(middleware.Logger)
log.Infof("Starting backend server on port %s", conf.Port)
log.Infof("Starting backend server on %s", net.JoinHostPort(conf.BindAddress, conf.Port))
r.Get("/*", pages)
r.HandleFunc("/empty", empty)
r.Get("/garbage", garbage)