Skip to content

Commit

Permalink
fix: config defaults to 0.0.0.0 for api,swam,gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Dec 13, 2023
1 parent 5a4276f commit 371e536
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions pkg/config/configenv/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ var Development = types.BacalhauConfig{
"/ip4/35.245.221.171/udp/4001/quic/p2p/12D3KooWRBYMhTF6MNh6eN84xcZtg6EX2wJguqEtRTNq4C7aytbu",
},
Profile: "flatfs",
SwarmListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
SwarmListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
},
Compute: DevelopmentComputeConfig,
Requester: DevelopmentRequesterConfig,
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/configenv/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ var Local = types.BacalhauConfig{
PrivateInternal: true,
SwarmAddresses: []string{},
Profile: "flatfs",
SwarmListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
SwarmListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
},
Compute: LocalComputeConfig,
Requester: LocalRequesterConfig,
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/configenv/production.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ var Production = types.BacalhauConfig{
"/ip4/35.245.41.51/udp/4001/quic/p2p/12D3KooWJM8j97yoDTb7B9xV1WpBXakT4Zof3aMgFuSQQH56rCXa",
},
Profile: "flatfs",
SwarmListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
SwarmListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
},
Compute: ProductionComputeConfig,
Requester: ProductionRequesterConfig,
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/configenv/staging.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ var Staging = types.BacalhauConfig{
"/ip4/35.245.247.85/udp/4001/quic/p2p/12D3KooWEztGEJtqtzy7th2d7cTw2iR4CQCPHFUYvj66rhh9Cf7h",
},
Profile: "flatfs",
SwarmListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
SwarmListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
},
Compute: StagingComputeConfig,
Requester: StagingRequesterConfig,
Expand Down
6 changes: 3 additions & 3 deletions pkg/config/configenv/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ var Testing = types.BacalhauConfig{
"/ip4/0.0.0.0/tcp/1235/p2p/QmcWJnVXJ82DKJq8ED79LADR4ZBTnwgTK7yn6JQbNVMbbC",
},
Profile: "flatfs",
SwarmListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/127.0.0.1/tcp/0", "/ip6/::1/tcp/0"},
SwarmListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
GatewayListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
APIListenAddresses: []string{"/ip4/0.0.0.0/tcp/0", "/ip6/::1/tcp/0"},
},
Compute: TestingComputeConfig,
Requester: TestingRequesterConfig,
Expand Down

0 comments on commit 371e536

Please sign in to comment.