Merge branch 'master' of https://github.com/ehlxr/hex-convert
This commit is contained in:
commit
73efa21170
@ -110,7 +110,7 @@ func Start(host string, port int) error {
|
||||
addr = strings.Replace(addr, "0.0.0.0", "", 1)
|
||||
host = strings.Replace(host, "0.0.0.0", "127.0.0.1", 1)
|
||||
}
|
||||
fmt.Printf("server start on: %s", fmt.Sprintf("http://%s:%d", host, port))
|
||||
fmt.Printf("server start on: %s\n", fmt.Sprintf("http://%s:%d", host, port))
|
||||
|
||||
if err := http.ListenAndServe(addr, nil); err != nil {
|
||||
return fmt.Errorf("ListenAndServe: : %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user