File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1919func main () {
2020 host := flag .String ("host" , "localhost" , "if you run your server on a different host" )
2121 port := flag .Int ("port" , 3000 , "por to run the server" )
22- imposters := flag .String ("imposters" , "imposters" , "directory where your imposter are saved" )
22+ imposters := flag .String ("imposters" , "imposters" , "directory where your imposters are saved" )
2323 v := flag .Bool ("version" , false , "show the version of the application" )
2424 flag .Parse ()
2525
@@ -35,7 +35,7 @@ func main() {
3535 log .Fatal (err )
3636 }
3737
38- httpAddr := fmt .Sprintf (":%d" , * port )
38+ httpAddr := fmt .Sprintf ("%s :%d" , * host , * port )
3939 log .Printf ("The fake server is on tap now: http://%s:%d\n " , * host , * port )
4040 log .Fatal (http .ListenAndServe (httpAddr , r ))
4141}
You can’t perform that action at this time.
0 commit comments