Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit f9d5e48

Browse files
author
Christian Weichel
committed
Listen on localhost only (security, ease-of-use)
1 parent 42c69b4 commit f9d5e48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/daemon/daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func InitCommand() *cobra.Command {
4444
}
4545

4646
const (
47-
port = ":50051"
47+
port = "localhost:50051"
4848
)
4949

5050
func runDaemonCommand(cmd *cobra.Command, args []string) {

daemon/daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import (
3838
)
3939

4040
const (
41-
port = ":50051"
41+
port = "localhost:50051"
4242
)
4343

4444
func runDaemonCommand(cmd *cobra.Command, args []string) {

0 commit comments

Comments
 (0)