Skip to content

Commit

Permalink
cmd: Fix network add-local for new insecure GRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Oct 7, 2024
1 parent 0496cc4 commit c706ff5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/network/add_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/spf13/cobra"
flag "github.com/spf13/pflag"

cmnGrpc "github.com/oasisprotocol/oasis-core/go/common/grpc"
"github.com/oasisprotocol/oasis-sdk/client-sdk/go/config"
"github.com/oasisprotocol/oasis-sdk/client-sdk/go/connection"

Expand All @@ -32,7 +33,7 @@ var (
}
// Validate initial network configuration early.
cobra.CheckErr(config.ValidateIdentifier(name))
if !net.IsLocalRPC() {
if !cmnGrpc.IsLocalAddress(net.RPC) {

Check failure on line 36 in cmd/network/add_local.go

View workflow job for this annotation

GitHub Actions / lint

undefined: cmnGrpc.IsLocalAddress (typecheck)

Check failure on line 36 in cmd/network/add_local.go

View workflow job for this annotation

GitHub Actions / lint

undefined: cmnGrpc.IsLocalAddress) (typecheck)

Check failure on line 36 in cmd/network/add_local.go

View workflow job for this annotation

GitHub Actions / tests-ubuntu-latest

undefined: cmnGrpc.IsLocalAddress

Check failure on line 36 in cmd/network/add_local.go

View workflow job for this annotation

GitHub Actions / tests-macos-latest

undefined: cmnGrpc.IsLocalAddress
cobra.CheckErr(fmt.Errorf("rpc-endpoint '%s' is not local", rpc))
}

Expand Down

0 comments on commit c706ff5

Please sign in to comment.