Skip to content

Commit 8e67f7b

Browse files
author
Luca Bianconi
committed
Merge branch 'master' into fix/sketch-name-validation
2 parents ced24f6 + a63aff4 commit 8e67f7b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: docs/UPGRADING.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ The sketch name submitted via the `sketch new` command of the CLI or the gRPC co
1111
[sketch specifications](https://arduino.github.io/arduino-cli/dev/sketch-specification).
1212

1313
Existing sketch names that don't respect the new constraints need to be updated.
14+
### `daemon` CLI command's `--ip` flag removal
15+
16+
The `daemon` CLI command no longer allows to set a custom ip for the gRPC communication. Currently there is not enough
17+
bandwith to support this feature. For this reason, the `--ip` flag has been removed.
1418

1519
### `board attach` CLI command changed behaviour
1620

Diff for: internal/cli/daemon/daemon.go

+1-2
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)