Skip to content

Commit

Permalink
Merge pull request #493 from ipfs-force-community/fix/disabale-auth-w…
Browse files Browse the repository at this point in the history
…hen-off-chain

fix: disable auth when off chain service
  • Loading branch information
simlecode authored and LinZexiao committed Dec 14, 2023
1 parent dbecbe5 commit db57367
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ func (m *MarketConfig) GetMessager() Messager {
}

func (m *MarketConfig) GetAuthNode() AuthNode {
if m.Signer.SignerType == SignerTypeWallet {
return AuthNode{}
}

ret := AuthNode{}
if m.AuthNode != nil {
ret = *m.AuthNode
Expand Down

0 comments on commit db57367

Please sign in to comment.