Skip to content

Conversation

@arnaud-lb
Copy link
Contributor

This adds support for /etc/hosts through a HostsFileExecutor executor.

The Factory is changed so that the Resolver looks in /etc/hosts first. The executor stack looks like this: CachedExecutor -> HostsFileExecutor -> RetryExecutor -> Executor.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

master is now 5.4+, so this stuff can go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great news :)

@attozk
Copy link

attozk commented Oct 15, 2014

+1 for one-time process of /etc/hosts

@clue
Copy link
Member

clue commented Sep 19, 2015

This PR seems like a good starting point, thanks @arnaud-lb!

This PR has been WIP for quite some time now and things have changed considerably since then :-)

React now consists of individual components that are maintained individually. Supporting the hosts file is now related to the react/dns component.

Somebody has already filed reactphp/dns#10 to keep track of this, so I suppose it makes sense to focus our hosts file related efforts on this component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants