diff --git a/cmd/bee/cmd/cmd.go b/cmd/bee/cmd/cmd.go index 6e88e74f714..41b45b467ef 100644 --- a/cmd/bee/cmd/cmd.go +++ b/cmd/bee/cmd/cmd.go @@ -244,7 +244,7 @@ func (c *command) setAllFlags(cmd *cobra.Command) { cmd.Flags().Bool(optionNameDBDisableSeeksCompaction, true, "disables db compactions triggered by seeks") cmd.Flags().String(optionNamePassword, "", "password for decrypting keys") cmd.Flags().String(optionNamePasswordFile, "", "path to a file that contains password for decrypting keys") - cmd.Flags().String(optionNameAPIAddr, ":1633", "HTTP API listen address") + cmd.Flags().String(optionNameAPIAddr, "127.0.0.1:1633", "HTTP API listen address") cmd.Flags().String(optionNameP2PAddr, ":1634", "P2P listen address") cmd.Flags().String(optionNameNATAddr, "", "NAT exposed address") cmd.Flags().Bool(optionNameP2PWSEnable, false, "enable P2P WebSocket transport") diff --git a/cmd/bee/cmd/start_dev.go b/cmd/bee/cmd/start_dev.go index c53158daeaa..4440b3fe441 100644 --- a/cmd/bee/cmd/start_dev.go +++ b/cmd/bee/cmd/start_dev.go @@ -131,7 +131,7 @@ func (c *command) initStartDevCmd() (err error) { }, } - cmd.Flags().String(optionNameAPIAddr, ":1633", "HTTP API listen address") + cmd.Flags().String(optionNameAPIAddr, "127.0.0.1:1633", "HTTP API listen address") cmd.Flags().String(optionNameVerbosity, "info", "log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace") cmd.Flags().Uint64(optionNameDevReserveCapacity, 4194304, "cache reserve capacity") cmd.Flags().StringSlice(optionCORSAllowedOrigins, []string{}, "origins with CORS headers enabled") diff --git a/packaging/bee.yaml b/packaging/bee.yaml index d3218d4e823..1c577ca4568 100644 --- a/packaging/bee.yaml +++ b/packaging/bee.yaml @@ -1,7 +1,7 @@ ## Bee configuration - https://docs.ethswarm.org/docs/working-with-bee/configuration -## HTTP API listen address (default ":1633") -# api-addr: :1633 +## HTTP API listen address (default "127.0.0.1:1633") +# api-addr: 127.0.0.1:1633 ## chain block time (default 15) # block-time: 15 ## initial nodes to connect to (default [/dnsaddr/mainnet.ethswarm.org]) diff --git a/packaging/docker/env b/packaging/docker/env index f578f1ea9c9..8c69d7c14e1 100644 --- a/packaging/docker/env +++ b/packaging/docker/env @@ -2,8 +2,8 @@ ### BEE -## HTTP API listen address (default :1633) -# BEE_API_ADDR=:1633 +## HTTP API listen address (default 127.0.0.1:1633) +# BEE_API_ADDR=127.0.0.1:1633 ## chain block time (default 15) # BEE_BLOCK_TIME=15 ## initial nodes to connect to (default [/dnsaddr/testnet.ethswarm.org]) diff --git a/packaging/homebrew-amd64/bee.yaml b/packaging/homebrew-amd64/bee.yaml index dc129fcd26f..c659865e193 100644 --- a/packaging/homebrew-amd64/bee.yaml +++ b/packaging/homebrew-amd64/bee.yaml @@ -1,7 +1,7 @@ ## Bee configuration - https://docs.ethswarm.org/docs/working-with-bee/configuration -## HTTP API listen address (default ":1633") -# api-addr: :1633 +## HTTP API listen address (default "127.0.0.1:1633") +# api-addr: 127.0.0.1:1633 ## chain block time (default 15) # block-time: 15 ## initial nodes to connect to (default [/dnsaddr/mainnet.ethswarm.org]) diff --git a/packaging/homebrew-arm64/bee.yaml b/packaging/homebrew-arm64/bee.yaml index 24f510c59e7..9e72223d3b2 100644 --- a/packaging/homebrew-arm64/bee.yaml +++ b/packaging/homebrew-arm64/bee.yaml @@ -1,7 +1,7 @@ ## Bee configuration - https://docs.ethswarm.org/docs/working-with-bee/configuration -## HTTP API listen address (default ":1633") -# api-addr: :1633 +## HTTP API listen address (default "127.0.0.1:1633") +# api-addr: 127.0.0.1:1633 ## chain block time (default 15) # block-time: 15 ## initial nodes to connect to (default [/dnsaddr/mainnet.ethswarm.org]) diff --git a/packaging/scoop/bee.yaml b/packaging/scoop/bee.yaml index 773cbeae95f..9815c65c839 100644 --- a/packaging/scoop/bee.yaml +++ b/packaging/scoop/bee.yaml @@ -1,7 +1,7 @@ ## Bee configuration - https://docs.ethswarm.org/docs/working-with-bee/configuration -## HTTP API listen address (default ":1633") -# api-addr: :1633 +## HTTP API listen address (default "127.0.0.1:1633") +# api-addr: 127.0.0.1:1633 ## chain block time (default 15) # block-time: 15 ## initial nodes to connect to (default [/dnsaddr/mainnet.ethswarm.org])