Skip to content

Commit

Permalink
undo dns neutering from offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Apr 23, 2021
1 parent 48f6893 commit b79689b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions core/node/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,3 @@ func DNSResolver(cfg *config.Config) (*madns.Resolver, error) {

return madns.NewResolver(opts...)
}

func NilDNSResolver() (*madns.Resolver, error) {
return madns.NewResolver(madns.WithDefaultResolver(&madns.MockResolver{}))
}
2 changes: 1 addition & 1 deletion core/node/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func Online(bcfg *BuildCfg, cfg *config.Config) fx.Option {
func Offline(cfg *config.Config) fx.Option {
return fx.Options(
fx.Provide(offline.Exchange),
fx.Provide(NilDNSResolver),
fx.Provide(DNSResolver),
fx.Provide(Namesys(0)),
fx.Provide(offroute.NewOfflineRouter),
OfflineProviders(cfg.Experimental.StrategicProviding, cfg.Reprovider.Strategy, cfg.Reprovider.Interval),
Expand Down

0 comments on commit b79689b

Please sign in to comment.