Skip to content

Use 0.0.0.0 as the server log command host default. #22768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2017

Conversation

ChadSikorra
Copy link
Contributor

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? -
Fixed tickets -
License MIT

This fixes the server:log command on Windows when run with default settings. The current setting 0 has no meaning on Windows, and 0.0.0.0 is the standard "listen on all addresses/interfaces", so should be the most compatible. It works on both Linux and Windows for me this way.

I mentioned this in another PR where the logger config has the same issue on Windows:

symfony/symfony-standard#1077

@stof stof requested a review from lyrixx May 19, 2017 08:24
@lyrixx
Copy link
Member

lyrixx commented May 19, 2017

I did not know 0 was not valid on windows. I'm sorry about that. @ChadSikorra Thanks for finding this error.

👍

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone May 19, 2017
@fabpot
Copy link
Member

fabpot commented May 19, 2017

Thank you @ChadSikorra.

@fabpot fabpot merged commit 3fcc810 into symfony:3.3 May 19, 2017
fabpot added a commit that referenced this pull request May 19, 2017
…ikorra)

This PR was merged into the 3.3 branch.

Discussion
----------

Use 0.0.0.0 as the server log command host default.

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | -
| Fixed tickets | -
| License       | MIT

This fixes the `server:log` command on Windows when run with default settings. The current setting `0` has no meaning on Windows, and `0.0.0.0` is the standard "listen on all addresses/interfaces", so should be the most compatible. It works on both Linux and Windows for me this way.

I mentioned this in another PR where the logger config has the same issue on Windows:

symfony/symfony-standard#1077

Commits
-------

3fcc810 Use 0.0.0.0 as the server log host default.
@fabpot fabpot mentioned this pull request May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants