Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf9b98a

Browse filesBrowse files
Remove ip flag from daemon command
1 parent a58d5ad commit bf9b98a
Copy full SHA for bf9b98a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎internal/cli/daemon/daemon.go

Copy file name to clipboardExpand all lines: internal/cli/daemon/daemon.go
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import (
3939

4040
var (
4141
tr = i18n.Tr
42-
ip string
4342
daemonize bool
4443
debug bool
4544
debugFile string
@@ -56,7 +55,6 @@ func NewCommand() *cobra.Command {
5655
Args: cobra.NoArgs,
5756
Run: runDaemonCommand,
5857
}
59-
daemonCommand.PersistentFlags().StringVar(&ip, "ip", "127.0.0.1", tr("The IP address the daemon will listen to"))
6058
daemonCommand.PersistentFlags().String("port", "", tr("The TCP port the daemon will listen to"))
6159
configuration.Settings.BindPFlag("daemon.port", daemonCommand.PersistentFlags().Lookup("port"))
6260
daemonCommand.Flags().BoolVar(&daemonize, "daemonize", false, tr("Do not terminate daemon process if the parent process dies"))
@@ -120,6 +118,7 @@ func runDaemonCommand(cmd *cobra.Command, args []string) {
120118
go feedback.ExitWhenParentProcessEnds()
121119
}
122120

121+
ip := "127.0.0.1"
123122
lis, err := net.Listen("tcp", fmt.Sprintf("%s:%s", ip, port))
124123
if err != nil {
125124
// Invalid port, such as "Foo"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.