Skip to content

Commit f5ba897

Browse files
authored
allow ffsusemasteraddr with devnet (textileio#567)
Signed-off-by: Aaron Sutula <hi@asutula.com>
1 parent e47b285 commit f5ba897

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type Config struct {
119119

120120
// NewServer starts and returns a new server with the given configuration.
121121
func NewServer(conf Config) (*Server, error) {
122-
if conf.FFSUseMasterAddr && !(len(conf.LotusMasterAddr) > 0 || conf.AutocreateMasterAddr) {
122+
if conf.FFSUseMasterAddr && !conf.Devnet && !(len(conf.LotusMasterAddr) > 0 || conf.AutocreateMasterAddr) {
123123
return nil, fmt.Errorf("FFSUseMasterAddr requires LotusMasterAddr or AutocreateMasterAddr to be provided")
124124
}
125125

0 commit comments

Comments
 (0)