mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-13 00:42:46 +01:00
Log URL on startup
This commit is contained in:
parent
20f3685d06
commit
e3aeb87d4e
2
main.go
2
main.go
@ -64,7 +64,7 @@ func main() {
|
|||||||
api.Template = opts.Template
|
api.Template = opts.Template
|
||||||
api.IPHeader = opts.IPHeader
|
api.IPHeader = opts.IPHeader
|
||||||
|
|
||||||
log.Printf("Listening on %s", opts.Listen)
|
log.Printf("Listening on http://%s", opts.Listen)
|
||||||
if err := http.ListenAndServe(opts.Listen, api.Router()); err != nil {
|
if err := http.ListenAndServe(opts.Listen, api.Router()); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user