From dd25f31e9a0d21038ae0244a10c531db110532e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 11 Jul 2019 13:57:04 +0200 Subject: [PATCH] Make API listen on localhost only --- daemon/cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/cmd.go b/daemon/cmd.go index bfb5e23be..4029f581e 100644 --- a/daemon/cmd.go +++ b/daemon/cmd.go @@ -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")) }, }