You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't believe there's any way to correctly get $key from this without doing another explode (like exploding on = if your variable string were ServerA=servera.com:11300,ServerB=serverb.com:11300) or doing some other such string-wrangling a la parse_str. Do you have an example of this environment-variable format to extract both keys (human-friendly server names) and values (hostnames)?
The text was updated successfully, but these errors were encountered:
You're right - there's no way to get a (non-numeric) $key with the current code. I'm not using the environment variable approach myself, but taking a format like what you suggested seems reasonable, and would require another explode.
I'm not using environment variables myself, but if I get a +1 on this approach I can open a PR to this effect.
When you're building your list of server names, the current parsing of environment variables looks like this:
I don't believe there's any way to correctly get
$key
from this without doing another explode (like exploding on=
if your variable string wereServerA=servera.com:11300,ServerB=serverb.com:11300
) or doing some other such string-wrangling a la parse_str. Do you have an example of this environment-variable format to extract both keys (human-friendly server names) and values (hostnames)?The text was updated successfully, but these errors were encountered: