elanthia-online / illthorn

Electron-based FE
18 stars 10 forks source link

Add fallback logic if localhost doesn't exist. #139

Closed jasedit closed 3 years ago

jasedit commented 3 years ago

If localhost doesn't exist in the DNS, fallback to 127.0.0.1. This resolves an issue for macOS where it isn't defined by default, but if someone were to delete the hosts entry, this would still safely fallback.

jasedit commented 3 years ago

@ondreian This PR has been adjusted to take advantage of the of() function being async, so this may be more correct? Let me know what you think.