Skip to content

Commit

Permalink
Minor change on served address build process. Fixes #6 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez authored and aperezg committed Apr 24, 2019
1 parent 7c5ef01 commit 0b2e339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/killgrave/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
func main() {
host := flag.String("host", "localhost", "if you run your server on a different host")
port := flag.Int("port", 3000, "por to run the server")
imposters := flag.String("imposters", "imposters", "directory where your imposter are saved")
imposters := flag.String("imposters", "imposters", "directory where your imposters are saved")
v := flag.Bool("version", false, "show the version of the application")
flag.Parse()

Expand All @@ -35,7 +35,7 @@ func main() {
log.Fatal(err)
}

httpAddr := fmt.Sprintf(":%d", *port)
httpAddr := fmt.Sprintf("%s:%d", *host, *port)
log.Printf("The fake server is on tap now: http://%s:%d\n", *host, *port)
log.Fatal(http.ListenAndServe(httpAddr, r))
}

0 comments on commit 0b2e339

Please sign in to comment.