Skip to content

Commit

Permalink
fix: curio: gui listen conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
strahe committed Apr 30, 2024
1 parent aa76a45 commit 09fe514
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmd/curio/deps/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ func (deps *Deps) PopulateRemainingDeps(ctx context.Context, cctx *cli.Context,
if err != nil {
return xerrors.Errorf("populate config: %w", err)
}
if cctx.IsSet("gui-listen") {
deps.Cfg.Subsystems.GuiAddress = cctx.String("gui-listen")
}
}

log.Debugw("config", "config", deps.Cfg)
Expand Down
8 changes: 7 additions & 1 deletion cmd/curio/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ var runCmd = &cli.Command{
Value: "0.0.0.0:12300",
EnvVars: []string{"LOTUS_WORKER_LISTEN"},
},
&cli.StringFlag{
Name: "gui-listen",
Usage: "host address and port the gui will listen on, only used when web gui is enabled",
Value: "127.0.0.1:4701",
Hidden: true,
},
&cli.BoolFlag{
Name: "nosync",
Usage: "don't check full-node sync status",
Expand Down Expand Up @@ -156,7 +162,7 @@ var webCmd = &cli.Command{
This creates the 'web' layer if it does not exist, then calls run with that layer.`,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "listen",
Name: "gui-listen",
Usage: "Address to listen on",
Value: "127.0.0.1:4701",
},
Expand Down
2 changes: 1 addition & 1 deletion node/config/def.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ const (
func DefaultCurioConfig() *CurioConfig {
return &CurioConfig{
Subsystems: CurioSubsystemsConfig{
GuiAddress: ":4701",
GuiAddress: "127.0.0.1:4701",
BoostAdapters: []string{},
},
Fees: CurioFees{
Expand Down

0 comments on commit 09fe514

Please sign in to comment.