Replace localhost with 127.0.0.1 in defaults (#1678)
This commit is contained in:
parent
bc7848fcaf
commit
07afba521d
@ -140,7 +140,7 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) {
|
||||
|
||||
kademliaBootstrapAddr := cmd.Flag("kademlia.bootstrap-addr")
|
||||
if !kademliaBootstrapAddr.Changed {
|
||||
overrides[kademliaBootstrapAddr.Name] = "localhost" + defaultServerAddr
|
||||
overrides[kademliaBootstrapAddr.Name] = "127.0.0.1" + defaultServerAddr
|
||||
}
|
||||
|
||||
return process.SaveConfigWithAllDefaults(cmd.Flags(), filepath.Join(setupDir, "config.yaml"), overrides)
|
||||
|
@ -140,7 +140,7 @@ func cmdRun(cmd *cobra.Command, args []string) (err error) {
|
||||
return err
|
||||
}
|
||||
if host == "" {
|
||||
address = net.JoinHostPort("localhost", port)
|
||||
address = net.JoinHostPort("127.0.0.1", port)
|
||||
}
|
||||
|
||||
fmt.Printf("Starting Storj S3-compatible gateway!\n\n")
|
||||
|
@ -13,5 +13,5 @@ type MinioConfig struct {
|
||||
|
||||
// ServerConfig determines how minio listens for requests
|
||||
type ServerConfig struct {
|
||||
Address string `help:"address to serve S3 api over" default:"localhost:7777"`
|
||||
Address string `help:"address to serve S3 api over" default:"127.0.0.1:7777"`
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
debugAddr = flag.String("debug.addr", "localhost:0", "address to listen on for debug endpoints")
|
||||
debugAddr = flag.String("debug.addr", "127.0.0.1:0", "address to listen on for debug endpoints")
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -50,7 +50,7 @@ type EncryptionConfig struct {
|
||||
// to talk to the rest of the network.
|
||||
type ClientConfig struct {
|
||||
APIKey string `default:"" help:"the api key to use for the satellite" noprefix:"true"`
|
||||
SatelliteAddr string `default:"localhost:7778" devDefault:"localhost:10000" help:"the address to use for the satellite" noprefix:"true"`
|
||||
SatelliteAddr string `default:"127.0.0.1:7778" devDefault:"127.0.0.1:10000" help:"the address to use for the satellite" noprefix:"true"`
|
||||
MaxInlineSize memory.Size `help:"max inline segment size in bytes" default:"4KiB"`
|
||||
SegmentSize memory.Size `help:"the size of a segment in bytes" default:"64MiB"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user