Replace localhost with 127.0.0.1 in defaults (#1678)

This commit is contained in:
Michal Niewrzal 2019-04-05 14:09:16 +02:00 committed by GitHub
parent bc7848fcaf
commit 07afba521d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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")

View File

@ -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"`
}

View File

@ -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() {

View File

@ -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"`
}