Skip to content
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

Make 127.0.0.1 SERVER_ADDR definition only if null #1356

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

mattstauffer
Copy link
Collaborator

@mattstauffer mattstauffer commented Jan 30, 2023

BasicValetDriver and a few drivers which extend it set the SERVER_ADDR to 127.0.0.1. To be honest, I'm not sure what circumstance actually requires this.

Here's the PR that introduced it, which doesn't tell us much: #380

So, in order to support local network sharing in #1284, I'm going to make what I hope a very narrow change that sets it to 127.0.0.1 only if it's null. It doesn't break any tests and doesn't break my environment, so hopefully I'm understanding correctly that this is workable.

I originally wrote this using ??= but we're stuck on PHP 7.2+.

@mattstauffer mattstauffer force-pushed the mes/conditional-127-0-0-1 branch from 6b0560a to cb30b65 Compare January 30, 2023 02:14
@mattstauffer mattstauffer force-pushed the mes/conditional-127-0-0-1 branch from cb30b65 to 6437faa Compare January 30, 2023 02:18
@mattstauffer mattstauffer mentioned this pull request Jan 30, 2023
@mattstauffer mattstauffer merged commit a2d3c04 into master Jan 30, 2023
@mattstauffer mattstauffer deleted the mes/conditional-127-0-0-1 branch January 30, 2023 02:20
vinkla added a commit to vinkla/wordplate that referenced this pull request Jan 31, 2023
mattstauffer added a commit that referenced this pull request Feb 8, 2023
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.

1 participant