This repository was archived by the owner on Mar 9, 2022. It is now read-only.
File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package config
2
2
3
3
// Addresses stores the (string) multiaddr addresses for the node.
4
4
type Addresses struct {
5
- Swarm []string // addresses for the swarm to listen on
6
- Announce []string // swarm addresses to announce to the network
7
- NoAnnounce []string // swarm addresses not to announce to the network
8
- API Strings // address for the local API (RPC)
9
- Gateway Strings // address to listen on for IPFS HTTP object gateway
5
+ Swarm []string // addresses for the swarm to listen on
6
+ Announce []string // swarm addresses to announce to the network, if len > 0 replaces auto detected addresses
7
+ AppendAnnounce []string // similar to Announce but doesn't overwride auto detected addresses, they are just appended
8
+ NoAnnounce []string // swarm addresses not to announce to the network
9
+ API Strings // address for the local API (RPC)
10
+ Gateway Strings // address to listen on for IPFS HTTP object gateway
10
11
}
Original file line number Diff line number Diff line change @@ -121,10 +121,11 @@ func addressesConfig() Addresses {
121
121
"/ip4/0.0.0.0/udp/4001/quic" ,
122
122
"/ip6/::/udp/4001/quic" ,
123
123
},
124
- Announce : []string {},
125
- NoAnnounce : []string {},
126
- API : Strings {"/ip4/127.0.0.1/tcp/5001" },
127
- Gateway : Strings {"/ip4/127.0.0.1/tcp/8080" },
124
+ Announce : []string {},
125
+ AppendAnnounce : []string {},
126
+ NoAnnounce : []string {},
127
+ API : Strings {"/ip4/127.0.0.1/tcp/5001" },
128
+ Gateway : Strings {"/ip4/127.0.0.1/tcp/8080" },
128
129
}
129
130
}
130
131
You can’t perform that action at this time.
0 commit comments