Make API listen on localhost only

This commit is contained in:
Łukasz Magiera 2019-07-11 13:57:04 +02:00
parent cd16e3e597
commit dd25f31e9a

View File

@ -49,6 +49,7 @@ var Cmd = &cli.Command{
return err
}
return serveRPC(api, ":"+cctx.String("api"))
// TODO: properly parse api endpoint (or make it a URL)
return serveRPC(api, "127.0.0.1:"+cctx.String("api"))
},
}