Skip to content

Commit

Permalink
Make the default address be 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlkzdh committed Sep 12, 2024
1 parent 743a84a commit 099114b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This minimalist protocol reduces overhead, delivering unparalleled speed compare

The SnowMint server accepts the following optional command line arguments:

`--address` The address for the server to bind to (default: localhost)
`--address` The address for the server to bind to (default: 0.0.0.0)

`--port` The port for the server to bind to (default: 8080)

Expand All @@ -90,7 +90,7 @@ Currently, SnowMint is available on Linux (amd64 and arm64), macOS (amd64 and ar
To run SnowMint in a Docker container, simply use the following with your desired flags; e.g.:
```bash
docker pull mxmlkzdh/snowmint:latest
docker run -d --name snowmint -p 8080:8080 mxmlkzdh/snowmint --address=0.0.0.0 --node=<NODE_ID>
docker run -d --name snowmint -p 8080:8080 mxmlkzdh/snowmint --node=<NODE_ID>
```

### Generate Your First SnowMint ID
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Config struct {
}

func LoadConfig() *Config {
address := flag.String("address", "localhost", "The address to bind to.")
address := flag.String("address", "0.0.0.0", "The address to bind to.")
port := flag.Int("port", 8080, "The port to bind to.")
dataCenterID := flag.Int("datacenter", 0, "The data center ID.")
nodeID := flag.Int("node", 0, "The node ID.")
Expand Down

0 comments on commit 099114b

Please sign in to comment.